dbr / tvdb_api
- Source
- Commits
- Network (4)
- Issues (3)
- Downloads (12)
- Wiki (1)
- Graphs
-
Branch:
master
-
flag to _not_ add episode title to filename?
2 comments Created 2 months ago by orlovskyGreat script, but I'd like to request one minor addition..
Could you possibly add a flag to restrict adding the episode title to the filename when renaming please?
so, as per the example in the readme:
"scrubs.s01e01.avi" would become "Scrubs - [01x01].avi"I've got a couple of series with really long titles, and it's making the filenames a little unwieldy!
Comments
-
It's me again :D
I use Ubuntu Intrepid with UTF-8. Script recognize show name corretly from thetvdb but while renaming skipping that char.see below:
#################### # Starting tvnamer # Processing 5 files # ..got tvdb mirrors # Starting to process files #################### # Processing Carnivale (season: 1, episode 11) TVDB Search Results: 1 -> Carnivàle # http://thetvdb.com/?tab=series&id=70860 Automatically selecting only result #################### Old name: Carnivale 1x11 - The Day of the Dead.avi New name: Carnivle - [01x11] - Day of the Dead.avi Rename? ([y]/n/a/q) y ..renamed # Processing Carnivale (season: 1, episode 1) #################### Old name: Carnivale 1x1 - Milfay.avi New name: Carnivle - [01x01] - Milfay.avi Rename? ([y]/n/a/q) y ..renamed # Processing Carnivale (season: 1, episode 4) #################### Old name: Carnivale 1x4 - Black Blizzard.avi New name: Carnivle - [01x04] - Black Blizzard.avi Rename? ([y]/n/a/q) y ..renamed # Processing Carnivale (season: 1, episode 5) #################### Old name: Carnivale 1x5 - Babylon.avi New name: Carnivle - [01x05] - Babylon.avi Rename? ([y]/n/a/q) y ..renamed # Processing Carnivale (season: 1, episode 6) #################### Old name: Carnivale 1x6 - Pick a Number.avi New name: Carnivle - [01x06] - Pick a Number.avi Rename? ([y]/n/a/q) y ..renamedComments
Unicode support is something I will definitely improve with tvnamer 2.0,
http://dbr.lighthouseapp.com/projects/13342/tickets/6-handle-unicode-in-input-filenames
Also, as a temporary fix, you could probably change the cleanName function of tvnamer to simply
return nameuntouched, or..def cleanName(name): return name.replace("/", "_")Should hopefully be fixed in http://github.com/dbr/tvnamer
-
Hi i really like your script. Could you pls update tvnamer.py for Anime series? Most of anime series haven't season number.
Some examples for Anime filenames:
[Eclipse] Fullmetal Alchemist Brotherhood - 02 (1280x720 h264) [8452C4BF].mkv [Shinsen-Subs] Armored Trooper Votoms - Pailsen Files - 01 [9E3F1D1C].avi [Shinsen-Subs] Beet - 19 [24DAB497].avi [AG-SHS]_Victory_Gundam_-_03_DVD_[FC6E3A6F].avi [YuS-SHS]_Gintama_-_88_(H264)_[52CA4F8B].mp4(?:[.+?])
Funsub name and codes not neded ofcourse :)
Thx.
Comments
I'm rewriting tvnamer shortly (2.0), and will look into this. Looks like it should be easy enough to do, I assume this naming-scheme is the standard for anime?
I've filed it on the lighthouse bug-tracker, http://dbr.lighthouseapp.com/projects/13342-tvdb_api/tickets/55-support-for-anime-filenames-groupshow_name-02a1b2c3mkv
Yes i think so.
some sites for naming-scheme, maybe you want to look.http://xbmc.org/forum/archive/index.php/t-45369.html
This is implemented in http://github.com/dbr/tvnamer now
-
The current system of two setup.py's being renamed and such is horrible
Comments
-
Devise a simple way to test errors with the thetvdb.com’s servers - connection errors, error 404/500s, and malformed content
Test errors with TVDB
Comments
-
0 comments Created 8 months ago by dbrdevxtvdb_apixSplit up tvdb_api and tvnamertvnamerxSo you can do..
easy_install tvdb_apior...
easy_isntall tvnamer..which will install tvdb_api as a dependancy, and install tvnamer
Split up tvdb_api and tvnamer
Comments
-
0 comments Created 8 months ago by dbrimprovementxSeason banners should be accessible via t[’show’][1]tvdb_apixThe current method of retrieving banners is a bit of a mess:
t[’show’][’_banners’][’fanart’][banners_id][’_bannerpath’]..or something along those lines. Users should be able to do something like..
>>> t[’show’][’_banners’][’posters’] [<Banner id:123>, <Banner id:124] >>> t[’show’][’_banners’][’posters’][0][’url’] http://....Comments
-
0 comments Created 8 months ago by dbrimprovementxTop rated season level graphicstvdb_apixI there a way to access the top rated poster and banner URL’s at the season level? I top rated graphics at the series level is an excellent option I would like to extend to the season level.
Top rated season level graphics
There doesn’t seem to be..
None of the pages on http://thetvdb.com/wiki/index.php/Programmers_API seem to mention it.. but I seem to recall the banners.xml being ordered by rating, so when I redo the banner interface I shall store the banners in a list, rather than an unordered dict..
Comments
-
tvnamer parsing of multi-languages filenames does not work
0 comments Created 8 months ago by dbrWhen tvnamer is used on unicode filenames the regex strings need to be modified. These new regex strings will still work for regular ascii filenames. tvnamer has other errors when processing unicode filenames that I do not have patches for. I use these regex strings in my own scripts to parse unicode filenames for season and episode numbers. They were originally based on tvnamer file processing.
New regex strings:
config[’name_parse’] = [ # foo_[s01]_[e01] re.compile(’’’^(.+?)[ \._\-]\[[Ss]([0-9]+?)\]_\[[Ee]([0-9]+?)\]?[^\\/]*$’’’% (config[’valid_filename_chars_regex’])), # foo.1x09* re.compile(’’’^(.+?)[ \._\-]\[?([0-9]+)x([0-9]+)[^\\/]*$’’’ % (config[’valid_filename_chars_regex’])), # foo.s01.e01, foo.s01_e01 re.compile(’’’^(.+?)[ \._\-][Ss]([0-9]+)[\.\- ]?[Ee]([0-9]+)[^\\/]*$’’’ % (config[’valid_filename_chars_regex’])), # foo.103* re.compile(’’’^(.+)[ \._\-]([0-9]{1})([0-9]{2})[\._ -][^\\/]*$’’’ % (config[’valid_filename_chars_regex’])), # foo.0103* re.compile(’’’^(.+)[ \._\-]([0-9]{2})([0-9]{2,3})[\._ -][^\\/]*$’’’ % (config[’valid_filename_chars_regex’])), ]Comments





This seems a bit of an obscure a flag to add.. The new version of tvnamer will have a better solution to this, I think..
You could have a config where the new-filename-format is just
%(showname}s - [%(seasno)s%(epno)]Then when you want to name files without the episode names, you do..
..or similar
Aha, thanks for clearing that up for me :)