dbr / tvnamer

Automatic TV episode file renamer, uses data from thetvdb.com via tvdb_api
https://pypi.python.org/pypi/tvnamer/
The Unlicense
912 stars 115 forks source link

Add Quality option to naming #82

Open smdern opened 11 years ago

smdern commented 11 years ago

I'm not sure which tool would be needed to determine or if it would be performant, but I like having 720p, 1080p, HDTV.. etc in the name.

lahwaacz commented 11 years ago

This could be understood in two ways:

1) The original filename already includes the 720p, 1080p, HDTV, ... string - you can use custom regex, define named group capturing the 720p, 1080p etc. string and use that in the output pattern. All the necessary features are already implemented, it will take just a little playing with the regex.

2) The original filename does not include the 720p, 1080p, HDTV etc. string, but you'd like to add it - this is not implemented ATM, ffprobe (my python interface: ffparser) could be used to get the video resolution. Then an additional function connected to FileParser.parse() would be necessary.

smdern commented 11 years ago

Adding a custom regex for determining if the resolution is in the original filename seems to be the easiest and fastest solution. Personally I'm more inclined to using ffprobe to find the actual resolution...

Thanks for pointing me to ffparser. I usually spend time in the ruby world so it's nice to have someone point out libs.

I'm probably going to mess around with this, this weekend. Cheers!

vosslab commented 4 years ago

wanted to vote for this issue 7 years later, a newer tool mediainfo would be better than ffparser