Kodi Community Forum
Beta TV Show renamer addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: Beta TV Show renamer addon (/showthread.php?tid=305440)



TV Show renamer addon - ata2001 - 2017-01-31

Hi!

I'm glad to introduce you my first Kodi addon: script.customregex

It is actually just a frontend for tvrenamr by George Hickman.

It extracts the data from the filenames, then downloads additional info from tvdb and renames the files.
It is useful in cases like Kodi can't find the data in the filenames or your filenames don't have titles and you can't find subtitles for them.
An optional symlink mode is u̶n̶d̶e̶r̶ ̶d̶e̶v̶e̶l̶o̶p̶m̶e̶n̶t̶ now actually working, what will allow you to rename without hurting the original files. (useful if you got the files with a P2P file sharing software)

You can specify the regex to use with a simple syntax. (tvrenamr documentation)
You will be also able to specify the data manually, but it's not yet implemented.

Todo:

Code:
Settings XML:
    Custom output regex: [x]
Help: [ ]
Remote control: [x]
Multi language support: [ ]
Symlink support: [x]
Save regexes: [ ]
Progress bar: [ ]
Show log: [x]

Screenshot:

Image

Thanks to ghickman for tvrenamr!
Thanks to Roman_V_M for pyxbmct!

License:

tvrenamr - MIT License
defusedxml - PSFL
my code - GPLv3

I'm really new to programming, so please be bear with me, the code quality maybe isn't the best.

The software is in beta stage, it lacks some features.

Source repo: https://github.com/ata2001/script.customregex
Download link: script.customregex.zip

The idea was to keep tvrenamr and this addon separately, so the development can go simultaneously.

Feel free to ask any questions!

Please try it and give me feedback!
Report if you find bugs! (won't be hard)
Tell me if you like the idea or not, or if you have any idea, how could I make this better!

Kind regards,

ata2001


RE: TV Show renamer addon - ata2001 - 2017-01-31

You can generate example files to test it with "for i in {01..12}; do touch Regular.Show.S01.E$i.mkv; done".

If you enable debug mode in settings, it won't actually rename the files, just prints the info in the log.


RE: TV Show renamer addon - ata2001 - 2017-02-18

GIF screen capture:
Image


RE: TV Show renamer addon - ata2001 - 2017-03-12

Please move my thread to Support / Add-on Support / Program Add-ons!

Thanks!


RE: TV Show renamer addon - Dangelus - 2017-03-12

(2017-03-12, 12:45)ata2001 Wrote: Please move my thread to Support / Add-on Support / Program Add-ons!

Thanks!

Moved.