Pomoc filebot copy movies to medialibrary, not make hardlinks

Robin

Entry Technician
Q Associate
7 Marzec 2016
66
4
8
QNAP
TS-x53B
Ethernet
802.11ac (Wi-Fi 5)
rtorrent_0.9.7-0912

Thanks for this forum which helps me a lot with Rtorrent-Pro. I have to say it is the best app I have used on my QNAP. Everything goes well until I notice my disk capacity reduces rapidly... I find out that rtorrent was copying movies, not making hardlink in medialibrary/Movies, Am I setting anything wrong?

I used putty to check:

Kod:
[~] # cd /share/Rdownload/medialibrary/Movies
[/share/Rdownload/medialibrary/Movies] # cd '12勇士 (2018)'
[/share/Rdownload/medialibrary/Movies/12勇士 (2018)] # ls -lia
total 15709280
435032073 drwxrwx---  3 admin administrators        4096 2022-04-08 16:02 ./
434962436 drwxrwx--- 73 admin administrators        4096 2022-04-08 16:32 ../
435031181 -rw-rw----  1 admin administrators      106307 2022-04-08 15:58 12勇士 (2018).chi.srt
435031180 -rwxrwx---  1 admin administrators 16083451022 2022-04-08 12:37 12勇士 (2018).mkv*
435031187 -rw-rw----  1 admin administrators      426180 2022-04-08 16:01 clearart.png
435031189 -rw-rw----  1 admin administrators      916443 2022-04-08 16:01 disc.png
435032074 drwxrwx---  2 admin administrators        4096 2022-04-08 16:02 extrafanart/
435031186 -rw-rw----  1 admin administrators      218754 2022-04-08 16:01 fanart.jpg
435031210 -rw-rw----  1 admin administrators      484004 2022-04-08 16:02 folder.jpg
435031183 -rw-rw----  1 admin administrators          59 2022-04-08 16:01 imdb.url
435031188 -rw-rw----  1 admin administrators      108488 2022-04-08 16:01 logo.png
435031182 -rw-rw----  1 admin administrators        6287 2022-04-08 16:01 movie.nfo
435031185 -rw-rw----  1 admin administrators      484004 2022-04-08 16:01 poster.jpg
435031184 -rw-rw----  1 admin administrators          62 2022-04-08 16:01 tmdb.url


And medialib.log here:
Kod:
Get [Chinese] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Looking up subtitles by hash via 射手网
Fetching [Chinese] subtitles [13.Hours.The.Secret.Soldiers.of.Benghazi.2016.1080p.BluRay.x264.DTS-WiKi.srt] from [射手网]
Export [13.Hours.The.Secret.Soldiers.of.Benghazi.2016.1080p.BluRay.x264.DTS-WiKi.srt] as [SubRip / UTF-8]
ting [12.Strong.2018.1080p.BluRay.x264.DTS-WiKi.ass] to [12.Strong.2018.1080p.BluRay.x264.DTS-WiKi.zho.srt]
CmdlineException: Illegal language code: ch
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /share/CACHEDEV2_DATA/Rdownload/complete/movie/12.Strong.2018.1080p.BluRay.x264.DTS-WiKi/12.Strong.2018.1080p.BluRay.x264.DTS-WiKi.mkv
Rename movies using [TheMovieDB]
[COPY] from [/share/CACHEDEV2_DATA/Rdownload/complete/movie/12.Strong.2018.1080p.BluRay.x264.DTS-WiKi/12.Strong.2018.1080p.BluRay.x264.DTS-WiKi.mkv] to [/share/CACHEDEV2_DATA/Rdownload/medialibrary/Movies/12勇士 (2018)/12勇士 (2018).mkv]
[COPY] from [/share/CACHEDEV2_DATA/Rdownload/complete/movie/12.Strong.2018.1080p.BluRay.x264.DTS-WiKi/12.Strong.2018.1080p.BluRay.x264.DTS-WiKi.zho.srt] to [/share/CACHEDEV2_DATA/Rdownload/medialibrary/Movies/12勇士 (2018)/12勇士 (2018).chi.srt]
Processed 2 files
Fetching movie artwork for [12勇士 (2018)] to [/share/CACHEDEV2_DATA/Rdownload/medialibrary/Movies/12勇士 (2018)]
Generate Movie NFO: 12勇士 [429351]
 
Rozwiązanie
my code was lazy like a shit
it was checking if destination directory is symlink
if no keep hardlink or move
if yes, then it was changing media clone method from hardlink to copy
that was bad

i fixed the code
now it is checking if destination points to same device id
if no, then change media clone method to copy

Bash:
stat -c %D /share/CACHEDEV1_DATA
stat -c %D /share/CACHEDEV2_DATA

eg.
Kod:
[~] # stat -c %D /share/CACHEDEV1_DATA
fd00
[~] # stat -c %D /share/CACHEDEV2_DATA
fd02
my code was lazy like a shit
it was checking if destination directory is symlink
if no keep hardlink or move
if yes, then it was changing media clone method from hardlink to copy
that was bad

i fixed the code
now it is checking if destination points to same device id
if no, then change media clone method to copy

Bash:
stat -c %D /share/CACHEDEV1_DATA
stat -c %D /share/CACHEDEV2_DATA

eg.
Kod:
[~] # stat -c %D /share/CACHEDEV1_DATA
fd00
[~] # stat -c %D /share/CACHEDEV2_DATA
fd02
 
Today update to BB01 in another NAS
Sometimes filebot still use copy instead of hardlink even in the same volume, but not always.

---------------------------------------------------------- || Hello World! ---
20220415_182736 - STEP [ 7/xx] - postrun - ARG_PATH : /share/CACHEDEV1_DATA/Rdownload/complete/movie/Chibi Maruko-Chan Ono-Kun to Sugiyama-Kun 1990 WEB-DL 864p H264 AAC-TTG
20220415_182736 - STEP [ 7/xx] - postrun - ARG_NAME :
20220415_182736 - STEP [ 7/xx] - postrun - ARG_LABEL:
20220415_182736 - STEP [ 7/xx] - postrun - CF_OUTPUT: /share/CACHEDEV1_DATA/Rdownload/medialibrary
20220415_182736 - STEP [ 7/xx] - postrun -?NEW_LABEL: movie
([0;31mwarn[m) filebot-available: Rtorrent-Pro reports: Filebot not found. Please install java and filebot correctly: Installing FileBot on QNAP NAS - FileBot
-----
Filebot not found or not running.

Please install filebot from here: Installing FileBot on QNAP NAS - FileBot

Important: Once filebot installed, make sure license has been installed correctly.
-----
/share/CACHEDEV1_DATA/Rdownload/medialibrary :fd00 => copy
/share/CACHEDEV1_DATA/Rdownload/medialibrary/Anime :fd00 => copy
/share/CACHEDEV1_DATA/Rdownload/medialibrary/Movies :fd00 => copy
/share/CACHEDEV1_DATA/Rdownload/medialibrary/Music :fd00 => copy
/share/CACHEDEV1_DATA/Rdownload/medialibrary/Unsorted :fd00 => copy
########
Warning!
########
 
Bash:
stat -c %D "/share/CACHEDEV1_DATA/Rdownload/complete/movie/Chibi Maruko-Chan Ono-Kun to Sugiyama-Kun 1990 WEB-DL 864p H264 AAC-TTG"
stat -c %D $(readlink -f /share/CACHEDEV1_DATA/Rdownload/medialibrary/Movies)
[~] # stat -c %D "/share/CACHEDEV1_DATA/Rdownload/complete/movie/Chibi Maruko-Chan Ono-Kun to Sugiyama-Kun 1990 WEB-DL 864p H264 AAC-TTG"
fd00
[~] # stat -c %D $(readlink -f /share/CACHEDEV1_DATA/Rdownload/medialibrary/Movies)
fd00
[~] #
 
I have the same issue here.

Bash:
[~] # stat -c %D "/share/CACHEDEV1_DATA/Multimedia/Series/2160"                                            
fd00
[~] # stat -c %D "/share/CACHEDEV1_DATA/Download/rtorrent/medialibrary/4K/TV Shows"                        
fd00
[~] # stat -c %i "/share/CACHEDEV1_DATA/Multimedia/Series/2160/Para toda la humanidad (2019) T1 [WEB-DL ATVP 2160p HEVC HDR Dual DD+ 5.1 Atmos Subs][GrupoHDS]/Pa>
360458812
<ent/medialibrary/4K/TV Shows/Para toda la humanidad/Season 01/Para toda la humanidad - S01E01 - Luna roja.mkv"                                                  
362152055
 

Załączniki

  • medialib.log.zip
    35,5 KB · Wyświetleń: 38
Kod:
------------------------------------------------------------------------------
 (medialibrary-postprocess) PID: 7306; (parent:1)
---------------------------------------------------------- || Hello World! ---
20220605_085848 - STEP [ 7/xx] - postrun  - ARG_PATH : /share/CACHEDEV1_DATA/Multimedia/Series/2160/Para toda la humanidad (2019) T1 [WEB-DL ATVP 2160p HEVC HDR Dual DD+ 5.1 Atmos Subs][GrupoHDS]
20220605_085848 - STEP [ 7/xx] - postrun  - ARG_NAME : 
20220605_085848 - STEP [ 7/xx] - postrun  - ARG_LABEL: 
20220605_085848 - STEP [ 7/xx] - postrun  - CF_OUTPUT: /share/CACHEDEV1_DATA/Download/rtorrent/medialibrary
([0;31mwarn[m) filebot-available: Rtorrent-Pro reports: Filebot not found. Please install java and filebot correctly: https://www.filebot.net/forums/viewtopic.php?t=6014
-----
Filebot not found or not running.

Please install filebot from here: https://www.filebot.net/forums/viewtopic.php?t=6014

Important: Once filebot installed, make sure license has been installed correctly.
-----
try_fix_kodi_tv_shows enabled
/share/CACHEDEV1_DATA/Download/rtorrent/medialibrary :fd00 => copy
/share/CACHEDEV1_DATA/Download/rtorrent/medialibrary/4K/Movies :fd00 => copy
/share/CACHEDEV1_DATA/Download/rtorrent/medialibrary/Anime :fd00 => copy
/share/CACHEDEV1_DATA/Download/rtorrent/medialibrary/Movies :fd00 => copy
/share/CACHEDEV1_DATA/Download/rtorrent/medialibrary/Music :fd00 => copy
/share/CACHEDEV1_DATA/Download/rtorrent/medialibrary/Unsorted :fd00 => copy
########
Warning!
########
 One or more destination directories are on different disk volume. Hardlinks will not work. Using copy method instead.

This is very strange. Seems like there is somekind corruption in your system.
First of all, parrent pid running this script is: 1 -very strange.

Next:
dev ID cannot be readed from input path:
Bash:
ARG_PATH="/share/CACHEDEV1_DATA/Multimedia/Series/2160/Para toda la humanidad (2019) T1 [WEB-DL ATVP 2160p HEVC HDR Dual DD+ 5.1 Atmos Subs][GrupoHDS]"
stat -c %D `readlink -f "$ARG_PATH"`
Try to read id manually and find out why its impossible to do that for script.

/share/CACHEDEV1_DATA/Multimedia/Series/2160/
is this your custom download path?
or maybe this is Rdownload share?
if not, please try to use Rdownload share and use it for downloads instead.

Please consider this:
Filebot not found or not running.

Please install filebot from here: Installing FileBot on QNAP NAS - FileBot

Important: Once filebot installed, make sure license has been installed correctly.
And finally use it and filebot developer for support. Write own script to parse your data.
 
/share/CACHEDEV1_DATA/Multimedia/Series/2160/
is this your custom download path?
or maybe this is Rdownload share?
if not, please try to use Rdownload share and use it for downloads instead.

Please consider this:

And finally use it and filebot developer for support. Write own script to parse your data.
My default directory for downloads is: /share/Rdownload/downloads/
After complete the download Autotool move the files by label to: /share/Multimedia adding Torrent's label to path

These directories and configurations have been working fine for years, something has changed but I don't know what.

1654446431210.png
 
Hi, I'm triying to solve mi configuración problem.

if not, please try to use Rdownload share and use it for downloads instead.

Now I use the recommended folder, and when I run:
Bash:
/usr/bin/rtorrent/bin/filebot-postprocess.sh '/share/Multimedia/Series/1080'

The script works correctly. (attached "medialib (manual execution).log")

But when it runs automatically after completing a download it doesn't create a hardlink, it makes a copy instead.
Don't you use the same script? I don't understand what difference there is.

I'm using AutoMove tool.
1660577095490.png


To show you the result I attach the medialib.log of the two actions, automatic execution and manual execution.
(the forum don't les me attach .log files)
 

Załączniki

  • medialib (manual execution).txt
    10,7 KB · Wyświetleń: 20
  • medialib (post download).txt
    21,6 KB · Wyświetleń: 21
Filebot support in Rtorrent-Pro is just an extras and its other product.

Now I use the recommended folder, and when I run:
probably its different then download directory or files are locked somehow.

You should write your own filebot script and put it on event finished in rtorrent.
1660580667692.png
 

Użytkownicy znaleźli tą stronę używając tych słów:

  1. filebot
  2. hardlink
  3. Rdownload folder
  4. Symlink
  5. rtorrent downloads
  6. Rtorrent pro
  7. rtorrent seed