olyckne / tvshow_parser Goto Github PK
View Code? Open in Web Editor NEWParses TV Shows. Mainly for converting to iTunes friendly format, adding metadata, subtitle and adding to iTunes
Parses TV Shows. Mainly for converting to iTunes friendly format, adding metadata, subtitle and adding to iTunes
Currently can handle filenames like TV.Show.201, which could convert to TV Show Season 2 Episode 1.
Sometimes AppleTV/iTunes/Quicktime just shows the first couple of lines of the subtitle, while VLC shows it correctly.
Minor investigations about the issue hints that FFmpeg could be the problem, so it might get solved by using some other software for adding subtitle. Although that of course isn't the nicest solution (one more software to depend on).
Maybe replace ffmpeg with something else?
Need to investigate further.
If for some reason the services for metadata and subtitle is sending http errors the script fails and dies.
For subtitle it should just skip and continue.
For metadata I guess it actually should quit but gracefully?
So you can pass in name, season and episode to use instead of parsing it from the filename, but what about a shorthand for all options?
For example a simple solution is to just pass another string to use in the parseFilename function
Because of the lstrip("0") it removes all 0 leaving season/episode empty.
self.season = matches.group("season").lstrip("0")
self.episode = matches.group("episode").lstrip("0")
lines from serye.py line 26-27:
https://github.com/olyckne/tvshow_parser/blob/master/modules/serie.py#L26-27
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.