Closed Ariane-B closed 1 year ago
Screenie your import folder settings
Are you trying to move files or just rename?
I'm not sure. I just want it to organize my folder, and what most of those options do is unclear to me.
What it basically is: qBittorrent downloads anime straight into the folder (the files in the bottom of this screenshot)
...and I want them to be organized in a way Jellyfin will understand. I don't really care how. But I supposed "move" is probably somewhat required since Jellyfin has a lot less trouble figuring out what belongs together as a series if they're grouped into subfolders.
...So, I guess, both rename and move so that it makes subfolders? But I don't really know what I'm doing and the interface isn't very explicit so I'm at a loss. To be honest I don't even know what it does exactly that I marked the folder as both source and destination.
Then you want two folders. One is a source. The other is a destination. qbittorrent can get in the way if it's seeding from the folder. I recommend things like deluge's copy on complete plugin to avoid shoko and the torrent client fighting over the files. There may be a similar thing for qbittorrent. Idk I don't use it. The both option for import folders is more meant for custom renamer plugins.
Edit: don't enable Watch for New Files on the destination folder. It may cause weirdness
Thanks for your help! In case someone else has my problem, here's what I did in detail.
cmd /c robocopy "%D" "%UserProfile%\Videos\anime-downloads-complete" "%N"
Note: Change /c
to /k
in the command line if you want the console window to remain open even after the copy has ended.
You can also use hardlinks in that case, and the files will only take the space of one copy of the file. Mklink on Windows can do it, I believe
Then qbittorrent and Shoko wouldn't interfere with each other even though they would be using the same file? That's interesting. Less space taken up. The advantage of easier cleanup when the system drive gets full is attractive too.
It really has to be a hard link though? A symbolic link wouldn't do?
Yeah, after it's finished, both only actually read the data itself. Shoko needs to be able to move it, but moving a link won't change the underlying data. libtorrrent just gets locks that can interfere with other things, probably on purpose, as you wouldn't want to seed corrupt files
I tried it manually at first. I created a hardlink like this:
cmd /c mklink /h "%UserProfile%\Videos\anime-downloads-complete\[SubsPlease] Heion Sedai no Idaten-tachi - 05 (1080p) [945D7FEB].mkv" "%UserProfile%\Videos\anime-downloads-raw\[SubsPlease] Heion Sedai no Idaten-tachi - 05 (1080p) [945D7FEB].mkv"
But in the server's logs, it said this:
2021-08-12T22:36:51.4705728Z
New file detected: C:\Users\azma\Videos\anime-downloads-complete\[SubsPlease] Heion Sedai no Idaten-tachi - 05 (1080p) [945D7FEB].mkv: Created
2021-08-12T22:36:51.4705728Z
Found file C:\Users\azma\Videos\anime-downloads-complete\[SubsPlease] Heion Sedai no Idaten-tachi - 05 (1080p) [945D7FEB].mkv
2021-08-12T22:36:57.4584786Z
Could not access file: C:\Users\azma\Videos\anime-downloads-complete\[SubsPlease] Heion Sedai no Idaten-tachi - 05 (1080p) [945D7FEB].mkv
2021-08-12T22:36:57.4584786Z
I manually copied the file into my source folder, and while it did move it, it threw an error in the logs, and seems to have failed at renaming it.
The logs look like this:
2021-08-12T23:50:20.8321073Z
New file detected: C:\Users\azma\Videos\anime-downloads-complete\[SubsPlease] Heion Sedai no Idaten-tachi - 05 (1080p) [945D7FEB].mkv: Created
2021-08-12T23:50:20.8321073Z
Found file C:\Users\azma\Videos\anime-downloads-complete\[SubsPlease] Heion Sedai no Idaten-tachi - 05 (1080p) [945D7FEB].mkv
2021-08-12T23:50:26.8852696Z
Hashing File: C:\Users\azma\Videos\anime-downloads-complete\[SubsPlease] Heion Sedai no Idaten-tachi - 05 (1080p) [945D7FEB].mkv
2021-08-12T23:50:40.3064514Z
Starting Updating STATS for SERIES Heion Sedai no Idaten-tachi - Watched Stats: True, Missing Episodes: True, Update Group Stats: True
2021-08-12T23:50:40.5123898Z
Starting Updating STATS for GROUP Heion Sedai no Idaten-tachi from Top Level (recursively) - Watched Stats: True, Missing Episodes: True, Groups Only: True
2021-08-12T23:50:40.5123898Z
Starting Updating STATS for GROUP Heion Sedai no Idaten-tachi - Watched Stats: True, Missing Episodes: True
2021-08-12T23:50:40.5474352Z
Paused Filesystem Watching
2021-08-12T23:50:40.5474352Z
Moving file from C:\Users\azma\Videos\anime-downloads-complete\[SubsPlease] Heion Sedai no Idaten-tachi - 05 (1080p) [945D7FEB].mkv to C:\Users\azma\Videos\Anime\Heion Sedai no Idaten-tachi\[SubsPlease] Heion Sedai no Idaten-tachi - 05 (1080p) [945D7FEB].mkv
2021-08-12T23:50:40.5605198Z
Unpaused Filesystem Watching
2021-08-12T23:50:40.5605198Z
System.Exception: *Error: No script available for renamer at Shoko.Server.Renamer.LegacyRenamer.GetFilename(RenameEventArgs args) in D:\a\ShokoServer\ShokoServer\Shoko.Server\Renamer\LegacyRenamer.cs:line 30 at Shoko.Server.RenameFileHelper.GetFilename(SVR_VideoLocal_Place place, String scriptName) in D:\a\ShokoServer\ShokoServer\Shoko.Server\Renamer\RenameFileHelper.cs:line 60 at Shoko.Server.Models.SVR_VideoLocal_Place.RenameFile(Boolean preview, String scriptName) in D:\a\ShokoServer\ShokoServer\Shoko.Server\Models\SVR_VideoLocal_Place.cs:line 65 at Shoko.Server.Models.SVR_VideoLocal_Place.RenameIfRequired() in D:\a\ShokoServer\ShokoServer\Shoko.Server\Models\SVR_VideoLocal_Place.cs:line 535
2021-08-12T23:50:40.5925426Z
Processing CommandRequest_AddFileToMyList: [SubsPlease] Heion Sedai no Idaten-tachi - 05 (1080p) [945D7FEB].mkv - 8B4D02B4213AB4AC1A9BD009431C281B - True
2021-08-12T23:50:42.2540057Z
Added File to MyList. File: [SubsPlease] Heion Sedai no Idaten-tachi - 05 (1080p) [945D7FEB].mkv Manual Link: False Watched Locally: False Watched AniDB: False Local State: HDD AniDB State: HDD ReadStates: True ReadWatched Setting: True ReadUnwatched Setting: True
2021-08-12T23:50:42.4246977Z
Starting Updating STATS for SERIES Heion Sedai no Idaten-tachi - Watched Stats: True, Missing Episodes: True, Update Group Stats: True
2021-08-12T23:50:42.6233204Z
Starting Updating STATS for GROUP Heion Sedai no Idaten-tachi from Top Level (recursively) - Watched Stats: True, Missing Episodes: True, Groups Only: True
2021-08-12T23:50:42.6233204Z
Starting Updating STATS for GROUP Heion Sedai no Idaten-tachi - Watched Stats: True, Missing Episodes: True
My folder for that show looks like this currently:
That error you are mentioning there is simply the fact you have renaming enabled, but the Legacy Renamer that is selected has an empty script.
Are you able to show the renamer section in Shoko Desktop to confirm this?
Found it!
So, is that bad? How do I get renaming back to how it was before I split my folders into two?
A bit grave digging on your issue but hoping it may help. I was facing the same problem and it got solved by (on the screen of the screenshot you provided) click save (I also had a checkbox and checked it). Then it could find the script to run !
Weird.
Closing this as it seems to be resolved.
@Ariane-B did you ever manage to merge the two split libraries back together, or do you still need help with that? If yes, then we can continue in this issue (but please keep it closed, since it's unrelated to the issue title), continue in a new issue, or hop into the #support channe in discord (if you haven't already received help over there).
It was a while ago and I forgot, but I think it ended up being fine! Well, it works fine these days, so it's probably okay.
VERSION INFORMATION
Server Version: 4.1.0.0 (+ daily from 2021-08-10)
Desktop Version: 4.1.0.0
If you've compiled your own version, please use the last commit you compiled.
LOG FILE
2021-08-10.log
DESCRIPTION
I restarted Shoko Server, which caused it to start rehashing everything. I noticed the logs were full of errors for each file:
STEPS TO REPRODUCE