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 hashes)
Built Distribution
xspf_fixup-0.9.3-py3-none-any.whl
(19.8 kB
view hashes)
Close
Hashes for xspf_fixup-0.9.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0a7621ba0cabd88fa9f5fb53eea0f5866feed56622f7fae08b8cb3c69d2063d |
|
MD5 | 101dcdc80cecdc6deab9e329c42ca8ee |
|
BLAKE2b-256 | d286d5e31339052a0c0a9e211985b0ae19315e1eab6c753a136a13cd06a3e485 |