Create STRM without file extensions and download artwork, NFO videos/folder?
luhanmcs opened this issue · comments
I'll break this down into two parts
- Add an option to remove extension from STRM
While this can easily be achieved, I find this to be pointless. If you don't need the file extensions, can't you just ignore them? I don't see this as an "essential requirement" - it's more of a nice-to-have
I don't really see any point in adding another flag for something this small - regardless I'll give some thought to this before making a final decision. I want to avoid a scenario where kodi-strm
has hundreds of flags for minor stuff.
In the meanwhile, you can use simple regex pattern(s) (re.sub(r'^(.*)\..*\.(.*)$', r'\1.\2', file)
maybe?) or something else to remove extensions from the generated STRM files
- Add an option to download artwork from videos
This is would be a straight no. My only purpose behind this script (and repo as a whole) was to supplement the functionality of the Google Drive Add-on, as such I don't plan on increasing the scope of this project at the moment.
This project will simply generate STRM files which can then be used by the add-on, reducing the wait-time.
When the STRMs are named like this:
Series - s01e01.mkv.strm then the Series - s01e01.nfo are not recognized together with the STRM files, I believe it is a limitation of the KODI itself. So when removing the file extensions, kodi finds the NFO information is displayed correctly. I manually remove extensions with a batch renamer.
(I have no programming knowledge, I wouldn't know where to add this regex data. Sorry)
About downloading artworks and nfo, I download through rclone, but if they could be downloaded together in the script it would be much faster and easier to keep the library organized.
Ex Rclone command line used: -rclone copy --progress --transfers 30 --include *.{nfo} "source:content" "destiny:library"
Obs. I actually download only the NFO and not the artwork, but it's a nice feature of the addon.
I really appreciate your script, helps me a lot, with addon exporting my library takes 24h, with the script less than 2h.
Okay, I guess can just add a --no-ext
flag that would simply replace the file extensions with .strm
extension
About downloading artworks and nfo, I download through rclone, but if they could be downloaded together in the script it would be much faster and easier to keep the library organized
Downloading artworks falls way outside the scope of this project - it's supposed to be a simple helper for the Drive Add-on. I'll have to decline this.
The original plan was to include this feature in the refactor
branch (which would also include a complete refactor of the script) -- but, on second thought, working on this feature individually would be more efficient. Should be done with this in a little while
@luhanmcs that should be what you wanted for your use case. Simply pull the latest version of the master
branch, and you should be able to use the --no-ext
flag to strip extensions from the strm files generated by kodi-strm
. You can read the linked PR for more info on this
P.S. The PR mentions this as well - the addition of the --no-ext
flag has not been mentioned in the readme. Once I'm done with the refactor, I'll be updating the readme (with this flag as well), and creating a new release!