A simple command line program to fix playlist (.xspf files) with broken links.
Project description
$ xspf_fixup
A simple command line program to fix playlist (.xspf
files) with broken links.
Refrences
Requirements
- Python 3.6+
Installation
From the Python package index (PyPI)
Run:
$ pip3 install xspf_fixup
From source
Download from Github
Standing inside the folder, run:
$ pip3 install -r requirements.txt
For install the dependencies and then run:
$ pip3 install .
Usage
user@host:~/tmp/xspf_fixup/examples$ xspf_fixup --help
Usage: xspf_fixup [OPTIONS] [FILES]...
A simple command line program to fix playlist (.xspf files) with broken
links.
For more info: (https://github.com/jbokser/xspf_fixup).
Options:
-v, --version Show version and exit.
-s, --show Show .xspf file info and exit.
-o, --overwrite Overwrite the .xspf file.
-r, --report Make a report in markdown for each .xspf file.
-h, --help Show this message and exit.
user@host:~/tmp/xspf_fixup/examples$ xspf_fixup -o ./test.xspf
Title Duration Location Result
-- ---------------- ---------- --------------------------- --------
1 Rockland Agus 03:01 videos/Rockland Agus.mp4 Fixed
2 Honky Tonk Way 04:06 videos/Honky Tonk Way.mp4 Fixed
3 Forge Ahead Agos 03:24 videos/Forge Ahead Agos.mp4 Fixed
Tracks count: ..... 3 (Fixed: 3)
Total duration: ... 10:32
user@host:~/tmp/xspf_fixup/examples$
user@host:~/tmp/xspf_fixup/examples$ to_xspf -h
Usage: to_xspf [OPTIONS]
A simple command line program to generate a playlist (.xspf file) with a
list of files.
Example:
$ ls examples/videos/*.mp4 | to_xspf.py > file.xspf
For more info: (https://github.com/jbokser/xspf_fixup).
Options:
-v, --version Show version and exit.
-i, --input-file FILENAME Input text file (or stdin).
-h, --help Show this message and exit.
user@host:~/tmp/xspf_fixup/examples$ ls videos/*.mp4 | to_xspf > files.xspf
File 'videos/Forge Ahead Agos.mp4': Ok
File 'videos/Honky Tonk Way.mp4': Ok
File 'videos/Rockland Agus.mp4': Ok
user@host:~/tmp/xspf_fixup/examples$
Why? (The rationale behind this)
Mainly used by me to fix the .xspf
files that Luis "la cosa muerta" Musa gave me.
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xspf_fixup-0.9.3.tar.gz
(18.9 kB
view details)
Built Distribution
File details
Details for the file xspf_fixup-0.9.3.tar.gz
.
File metadata
- Download URL: xspf_fixup-0.9.3.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0ec6acf80a6bd283fcac29039bf8856c8ea4c01debc5cbb3b0663f9080a59bc |
|
MD5 | ccc2edf4e980cde615e87fbf0a99cfc4 |
|
BLAKE2b-256 | 05af78bcf8b593e84eccf75e12a20420cdfcda0e45b6166e0eba77e46fd9a0d7 |
File details
Details for the file xspf_fixup-0.9.3-py3-none-any.whl
.
File metadata
- Download URL: xspf_fixup-0.9.3-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0a7621ba0cabd88fa9f5fb53eea0f5866feed56622f7fae08b8cb3c69d2063d |
|
MD5 | 101dcdc80cecdc6deab9e329c42ca8ee |
|
BLAKE2b-256 | d286d5e31339052a0c0a9e211985b0ae19315e1eab6c753a136a13cd06a3e485 |