Hello!!
So I've been trying to work out this script but just can't quite get it to work and I have no idea what I'm missing! Currently, once my torrent finishes, the script runs (along with a couple of strange errors I don't understand) and then it COPIES the file(s) over to where I have specified, but it doesn't rename them..? So I end up simply duplicating the original file with the same filename in a different directory.
I'm on Windows 8.1 64bit...
uTorrent is set up to save finished torrents to C:\Users\Dion\Downloads\Torrent Downloads (Completed)
And here's my script:
filebot -script fn:amc --output "C:/Users/Dion/Downloads/Torrent Downloads (Completed)" --log-file amc.log --action copy --conflict override -non-strict --def "seriesFormat=C:/Users/Dion/Videos/TV Shows/{fn}" "animeFormat=C:/Users/Dion/Videos/Anime/{fn}" "movieFormat=C:/Users/Dion/Videos/Movies/{fn}" "musicFormat=C:/Users/Dion/Music/{n}/{fn}" music=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
Where do I set up each {fn}? If I understand correctly, this pulls in my renaming preference from FileBot, so Episodes are currently set up in FileBot as {n} - Season {s} - Ep{e} - {t}
And here's the log for the last attempt:
Run script [fn:amc] at [Thu Jun 18 22:20:33 NZST 2015]
Parameter: seriesFormat = C:/Users/Dion/Videos/TV Shows/{fn}
Parameter: animeFormat = C:/Users/Dion/Videos/Anime/{fn}
Parameter: movieFormat = C:/Users/Dion/Videos/Movies/{fn}
Parameter: musicFormat = C:/Users/Dion/Music/{n}/{fn}
Parameter: music = y
Parameter: ut_label =
Parameter: ut_state = 20
Parameter: ut_title = Hello.Ladies.S01E06.HDTV.x264-2HD.mp4
Parameter: ut_kind = single
Parameter: ut_file = Hello.Ladies.S01E06.HDTV.x264-2HD.mp4
Parameter: ut_dir = C:\Users\Dion\Downloads\Torrent Downloads (Completed)
Input: C:\Users\Dion\Downloads\Torrent Downloads (Completed)\Hello.Ladies.S01E06.HDTV.x264-2HD.mp4
Group: [tvs:hello ladies] => [Hello.Ladies.S01E06.HDTV.x264-2HD.mp4]
Jun 18, 2015 10:20:39 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Rename episodes using [TheTVDB]
Auto-detected query: [Hello Ladies]
Fetching episode data for [Hello Ladies]
[COPY] Rename [C:\Users\Dion\Downloads\Torrent Downloads (Completed)\Hello.Ladies.S01E06.HDTV.x264-2HD.mp4] to [C:\Users\Dion\Videos\TV Shows\Hello.Ladies.S01E06.HDTV.x264-2HD.mp4]
Processed 1 files
Jun 18, 2015 10:20:41 PM net.filebot.media.MediaDetection storeMetaInfo
WARNING: Failed to set xattr: java.lang.RuntimeException: java.nio.file.AccessDeniedException: C:\Users\Dion\Videos\TV Shows\Hello.Ladies.S01E06.HDTV.x264-2HD.mp4:net.filebot.metadata
Done ヾ(@⌒ー⌒@)ノ
Where am I going wrong? I want this to MOVE the file to the new directory and rename it, but it's currently COPYING it and not renaming it at all! And should I be worried about those warnings??
Please help!
Thanks,
Dion
uTorrent moving files but not renaming! Help??
Re: uTorrent moving files but not renaming! Help??
{fn} ... original filename
Don't override the formats if you don't know what you're doing. Why do you think you need to force your own formats? Use the FileBot GUI Format Editor first to prototype your format step by step if that's really what you want.
Moving files is not officially supported because it breaks how bit torrent works. I recommend using hardlinks instead.
The CLI does not magically reuse whatever settings you've setup in the GUI. It's stateless by design.
PS:
Don't override the formats if you don't know what you're doing. Why do you think you need to force your own formats? Use the FileBot GUI Format Editor first to prototype your format step by step if that's really what you want.
Moving files is not officially supported because it breaks how bit torrent works. I recommend using hardlinks instead.
The CLI does not magically reuse whatever settings you've setup in the GUI. It's stateless by design.
PS:
Please READ the manual carefully. You completely misunderstand the purpose of the --output option.Manual wrote:You must not use your download folder %D (or any other folder inside) as --output folder
-
- Posts: 2
- Joined: 18 Jun 2015, 10:19
Re: uTorrent moving files but not renaming! Help??
Thanks for your help!!
I'm sorry - I should have mentioned that I am completely new to this whole script thing! However, I LOVE the actual FileBot GUI and actually do understand the renaming formats but I mistakenly thought {fn} referenced the 'function' set within the FileBot GUI. I've now amended the script to include the actual formats rather than {fn}.
Anyway, here's the new script - hopefully this is okay (as it seems to be working now):
I have a couple more questions if you have the time and the patience!
1. As you can see, I've also changed the --output path but I'm still not sure how this directory is actually used..? So uTorrent saves the completed file to %D, then the script ends up moving the files to their respective folders (eg. Videos/Movies, Videos/TV Shows, etc.) so what is this --output path used for?
2. Although not officially supported, would --action move move the files to their new directories, rather than leave a copy elsewhere? Or is the issue that it can't move a file that will still be in use by uTorrent (ie. it will still be in the download list as 'Finished' until manually removed)...
Thank you!
I'm sorry - I should have mentioned that I am completely new to this whole script thing! However, I LOVE the actual FileBot GUI and actually do understand the renaming formats but I mistakenly thought {fn} referenced the 'function' set within the FileBot GUI. I've now amended the script to include the actual formats rather than {fn}.
Anyway, here's the new script - hopefully this is okay (as it seems to be working now):
Code: Select all
filebot -script fn:amc --output "C:/Users/Dion/Downloads" --log-file amc.log --action copy --conflict override -non-strict --def "seriesFormat=C:/Users/Dion/Videos/TV Shows/{n} - Season {s} - Ep{e} - {t}" "animeFormat=C:/Users/Dion/Videos/Anime/{fn}" "movieFormat=C:/Users/Dion/Videos/Movies/{n} ({y})/{n} ({y})" "musicFormat=C:/Users/Dion/Music/{artist}/{artist} - {album} ({y})/{artist} - {t}" music=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
1. As you can see, I've also changed the --output path but I'm still not sure how this directory is actually used..? So uTorrent saves the completed file to %D, then the script ends up moving the files to their respective folders (eg. Videos/Movies, Videos/TV Shows, etc.) so what is this --output path used for?
2. Although not officially supported, would --action move move the files to their new directories, rather than leave a copy elsewhere? Or is the issue that it can't move a file that will still be in use by uTorrent (ie. it will still be in the download list as 'Finished' until manually removed)...
Thank you!
Re: uTorrent moving files but not renaming! Help??
1.
--output is the base for all the relative formats (among other things).
So I'd write:
2.
You can set --action move but it'll fail if utorrent still has a lock because Windows allow moving/deleting files that are currently owned by some other application.
--output is the base for all the relative formats (among other things).
So I'd write:
Code: Select all
filebot -script fn:amc --output "C:/Users/Dion/Videos" --log-file amc.log --action copy --conflict override -non-strict --def "seriesFormat=TV Shows/{n} - {s00e00} - {t}" "animeFormat=Anime/{fn}" "movieFormat=Movies/{n} ({y})/{n} ({y})" "musicFormat=../Music/{artist}/{artist} - {album} ({y})/{artist} - {t}" music=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
You can set --action move but it'll fail if utorrent still has a lock because Windows allow moving/deleting files that are currently owned by some other application.