I am finished for now, please test the new script, version 2.0b17 has been posted at https://sites.google.com/a/moboard.com/tablo/ If any issues are found I will try to address them over the next week or so.
@jskenney
Quick question, it does not appear that the metadata is included in the file when it’s removed from the Tablo and placed in a .ts or .mp4 on my local PC… Is this the case?
No there is no data embeded, I do not embed any metadata in the file either. Never thought of trying that, sounds like a great option. Is there a “standard” naming convention for metadata in a .mp4 file (no metadata for .ts) - to implement this I would need an undestanding of the naming conventions and have to find a good command line tool that would do the work for me.
I am playing with line 600 where the FFMPEG cmd is called. It looks like -metadata can be added to that line to add the metadata to the file. I was able to add, -metadata title = “test”. When I check out the metadata after it processed, it was included in the file. Just need to add the rest of the metadata information based on what you’re already pulling out of the meta.txt file
For the metadata, I will work on a TV -> metadata, and Movie -> metadata following https://code.google.com/p/mp4v2/wiki/iTunesMetadata and http://wiki.multimedia.cx/index.php?title=FFmpeg_Metadata (and looking at the tags from a previous TV show and Movie iTunes purchase). This seams rather doable.
Thanks for working on this … !
jskenney - I updated my server to use the new script yesterday and wanted to say thanks for the great work. I like the use of the file vs the DB. It definitely makes modifying the data a lot easier.
- For the format of date-based episodes why did you change from Season Title - YYYY-MM-DD - Episode Title to Season Title - Episode Title (YYYY-MM-DD). The former is the supported format for Plex and what was used in the original script. Another thing I did was change the date in the date-based episode to use the original air date. I have made the changes to my local script and can share my edits in case you wanted to see my changes.
- Would it be possible to turn off directory creation for TV shows through a command line flag? On my server I have a workflow where the unprocessed files are dumped to a directory that MCE Buddy reads and removes commercials and them moves them to Plex. I can update the scripts if needed and send you my changes for this as well.
@mjarends I just uploaded b21 to my site, you can now prevent the tv directory structure from being created with option -tvcreate:False
Thanks for the update.
@jskenney
This is working great. Thank you for all of the time that you have put into this.
Just a suggestions for a future enhancement, could there be an option to delete the folder on Tablo after it has been copied to a local drive?
@mjarends b30 fully integrates mutagen (if installed) on your system, and I can get all of the metadata filled in. Nice library, that solved many problems.
@jskenny I saw that you had posted the change last night (including the mutagen change). I have updated my server with the new script. Thanks again for incorporating my suggestions.
@jskenney
I am trying to use the -a -sleep:900 and it runs ok but it does not see any new files. If I stop and start the process again, it find the files without any issues.
Do you know if this is an issue?
@BoomerTheWeim beta b31 has been posted, that should fix the issue, I had it set so that If the video was being recording while the scan occurred it was being completely ignored in the future - oops.
Awesome, thanks. I am trying it out now.
Thanks everyone for testing. b33 has been uploaded and will be the last one for a few days (while I let it run against all of the videos on my two tablos to test). I think I got all of the issues sorted with downloading metadata (so that it will download videos if they were recording during the last metadata load, and if the video was finished I no longer bother attempting to download the metadata again).
@jskenney I’d like to try this. How do I define/configure paths for the Movie directory and TV directory? Do I add this as a PATH in system Variables or is it something I can do with the flags? I want to put my videos on a D:Video directory where I have a lot of room.
There are two options, one is to change the defaults by editing the script, you will see the lines
Thanks! I’m looking forward to trying this.