Auto-rename your episodes
#22
Posted 07 January 2009 - 11:18 PM
spaceman, on Jan 7 2009, 11:47 AM, said:
btw that function won't do anything unless the script is triggered by a folder action.
You'll need to update your cron job as the calling syntax for the bash file has changed. Just add a -m before the srcfolder and you should be good to go.
I'm holding out for you to test it
My cron will get me by until then...
#23
Posted 11 January 2009 - 01:29 AM
Whats odd about the script is it'll move anything. It appears that while I'm copying files to the Airport Disk, it'll give it some goofy name temporarily. If the script only looked for AVI, MP4, etc. I don't think I'd have the issue anymore.
#24
Posted 11 January 2009 - 02:44 AM
Hilbe, on Jan 10 2009, 08:29 PM, said:
Yes, I might post a new version tomorrow.
I've got a commitment that could last all week and I'm well into some major enhancements to this script.
Depending on how things go I might post an update with just this item and hold back on the other enhancements for a week or two.
Hilbe, on Jan 10 2009, 08:29 PM, said:
I know, I've experienced this myself and it's on the to do list.
#25
Posted 21 January 2009 - 02:25 AM
1. The name.S02E03.extn regexp doesn't treat the lower case S and E conventions that are often used. (need to modify the regexps to have [Ss] and [Ee])
2. If doing a move, its good to simlink from the original directory so torrents can continue. This means you can move across mounts and then symlink giving almost same as hardlinking does on the same mount.
What I can't get working though is the automated folder actions... I follwed your instructions and did some look ups on the web and all seems good but the script never runs automatically. The script is enabled in the folder automation app. ANyone got any ideas?
#26
Posted 21 January 2009 - 05:14 AM
Pundy, on Jan 20 2009, 09:25 PM, said:
Thanks for reminding me
Pundy, on Jan 20 2009, 09:25 PM, said:
Not sure how well the various torrent client will handle this. I've been putting inks in the library folder and leaving all the originals in the downloads folder. If you can think of any reason to do it the other way I might add this as an option
Pundy, on Jan 20 2009, 09:25 PM, said:
Wait a bit. The next version is progressing nicely.
#27
Posted 21 January 2009 - 09:24 AM
spaceman, on Jan 20 2009, 09:14 PM, said:
With hard links, it doesn't matter; once both names exist, they're equally real.
For symlinks, I'd think you'd want the real file in its permanent location and the symlink in the temporary (if one is temporary). For me at least, the torrent seed copy is the temporary one.
It'd be nice if the torrent clients exposed an interface that would let us point them at the final destination, but I don't think any of them do.
On the Daily Show, Colbert Report and similar, it's possible to use TheTVDB to get working (if somewhat imaginary, I think) season and episode numbers. You need to parse out the date from the original filename, and have a seriesid, and then you use the GetEpisodeByAirdate.php api call. You could look up seriesids manually and hardcode them for the few shows that need this, or you could use the GetSeries.php call.
I have a similar renamer, written partially as a Ruby learning exercise. It gives filenames like "The Daily Show.S14E03.2009-01-07.Rachel Maddow.avi" for TDS.
I don't claim it's great code and it absolutely won't for anyone else without some code changes, but I'd be happy to share it if someone wants to see how to use the TheTVDB API or wants a ruby base to build their own customizations on. (I'm very impressed, in a "my god, did you see that 50 car pileup?" kind of way, at the things some people do with AppleScript)
#28
Posted 22 January 2009 - 05:35 AM
OSX 10.5.4
Harmony One Remote
Remote Buddy
#29
Posted 22 January 2009 - 06:58 AM
crimsonhawk, on Jan 22 2009, 12:35 AM, said:
Thanks
#34
Posted 28 January 2009 - 06:27 PM
rogersmj, on Jan 28 2009, 12:26 PM, said:
TVDB integration is on my to-do list. Track the topic to get notifications when new versions are posted.
If you have any other feature requests please let me know.
#35
Posted 28 January 2009 - 06:29 PM
spaceman, on Jan 28 2009, 01:27 PM, said:
If you have any other feature requests please let me know.
I've mentioned this in a feature request thread for a command line utility. It'd be awesome that once you're done moving the file, it'll directly update a Plex DB regardless to whether Plex is running. This will require some sqllite connectivity I believe...
#36
Posted 28 January 2009 - 06:57 PM
Hilbe, on Jan 28 2009, 01:29 PM, said:
Editing Plex's internal DB directly is risky. If an update changes the way library info is stored we could end up breaking people's libraries.
Plex has an option to update on startup. Plex is also stable enough at this point that you can leave it running in the background for days at a time.
I think those are both preferable options. You're welcome to try and convince me otherwise.
#38
Posted 28 January 2009 - 10:04 PM
#40
Posted 29 January 2009 - 06:52 AM
Any suggestions? I've tried removing all previous versions, restarting, etc... and can't get it to work or do anything other than throw this applescript error.
OSX 10.5.4
Harmony One Remote
Remote Buddy

Sign In
Register
Help


MultiQuote