GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jbokser/xspf_fixup: A simple command line program to fix playlist (`.xspf` files) with broken links.

BranchesTags
Open more actions menu

Latest commit

 

History

30 Commits
30 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
examples
examples
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 
setup.py
setup.py
 
 
to_xspf
to_xspf
 
 
to_xspf.py
to_xspf.py
 
 
to_xspf.sh
to_xspf.sh
 
 
xspf_fixup
xspf_fixup
 
 
xspf_fixup.py
xspf_fixup.py
 
 
xspf_fixup.sh
xspf_fixup.sh
 
 

Repository files navigation

$ xspf_fixup

A simple command line program to fix playlist (.xspf files) with broken links.

Refrences

  • Source code in Github
  • Package from Python package index (PyPI)

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

Juan S. Bokser [email protected]

About

A simple command line program to fix playlist (`.xspf` files) with broken links.

Topics

xspf-playlist

Resources

Readme
GPL-3.0 license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.