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
Hi Robin

Well I dont remember if there was a problem. However in latest version this scenario has been updated a little bit.
Today Rtorrent-Pro offers two selection in SETTINGS UI:
1649421525692.png


I can recommend you to use 'move' instead hardlink.

Let me explain why....
Well let's say you are downloading X stuff and want to seed.
So it is in download directory.
There is no reason to keep same movie in 3 locations even if its hardlinked:
- download
- complete
- medialibrary

It's better to keep it in:
- download (for seed purpose)
- medialibrary (as private archive)

I recommend you to go that way.

However to make sure content will get moved, make sure you are using label directories: watch/movie ; watch/tv ; watch/kids
4K content is detected automatically no matter where you put it.

Thanks
 
  • Lubię to
Reakcje: Robin
Hi Robin

Well I dont remember if there was a problem. However in latest version this scenario has been updated a little bit.
Today Rtorrent-Pro offers two selection in SETTINGS UI:
Pokaż załącznik 39796

I can recommend you to use 'move' instead hardlink.

Let me explain why....
Well let's say you are downloading X stuff and want to seed.
So it is in download directory.
There is no reason to keep same movie in 3 locations even if its hardlinked:
- download
- complete
- medialibrary

It's better to keep it in:
- download (for seed purpose)
- medialibrary (as private archive)

I recommend you to go that way.

However to make sure content will get moved, make sure you are using label directories: watch/movie ; watch/tv ; watch/kids
4K content is detected automatically no matter where you put it.

Thanks
Hi Silas.

Thanks for quick response! You are so nice and I'd like to take your advice. I just paid for it here and now downloading the latest version.
I think complete is some kind of backup...
BTW thank you so much for such a good app,赶紧补票。。
 
  • Lubię to
Reakcje: Silas Mariusz
Hi Robin

Hardlinks are possible to be done on same disk volume. When the target is different disk volume (or just another HDD if static) then hardlink cannot be done. So copy function is done instead.

Make sure complete and medialibrary are the same /share/CACHEDEV

Bash:
readlink -f /share/Multimedia/Movie
readlink -f /share/Rdownload/medialibrary/Movies

Does CACHEDEV have same number?
If yes then hardlink can be done.
If no fallback to copy method.
 
1649421525692-png.png

Hi Robin

Hardlinks are possible to be done on same disk volume. When the target is different disk volume (or just another HDD if static) then hardlink cannot be done. So copy function is done instead.

Make sure complete and medialibrary are the same /share/CACHEDEV

Bash:
readlink -f /share/Multimedia/Movie
readlink -f /share/Rdownload/medialibrary/Movies

Does CACHEDEV have same number?
If yes then hardlink can be done.
If no fallback to copy method.
Same CACHEDEV (CACHEDEV2_DATA) but it contains 3 disks via static single volumes(DataVol1)
I am curious if hardlink can be done from 'downloads' to 'complete', why it is not able from 'complete' to 'medialibrary' ...
Połączono posty:

[~] # readlink -f /share/Multimedia/Movie
/share/CACHEDEV2_DATA/Multimedia/Movie
[~] # readlink -f /share/Rdownload/medialibrary/Movies
/share/CACHEDEV2_DATA/Multimedia/Movie
 
Still not working...

[/share/Rdownload/medialibrary/Movies/狩猎 (2012)] # ls -lia
total 1874868
435068930 drwxrwx--- 2 admin administrators 4096 2022-04-08 21:39 ./
434962436 drwxrwxrwx 115 admin administrators 4096 2022-04-08 21:39 ../
435032408 -rwxrwx--- 1 admin administrators 1919840256 2022-04-08 21:39 狩猎 (2012).mkv*


just 1 mins ago...
 
and whats wrong with it?
what medialib.log says?
gimme full log
20220408_213305 - STEP [ 7/xx] - postrun - ARG_PATH :
20220408_213305 - STEP [ 7/xx] - postrun - ARG_NAME :
20220408_213305 - STEP [ 7/xx] - postrun - ARG_LABEL:
20220408_213305 - STEP [ 7/xx] - postrun - CF_OUTPUT: /share/CACHEDEV2_DATA/Rdownload/medialibrary


that is the full log...
 

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

  1. filebot
  2. hardlink
  3. rtorrent downloads
  4. Rtorrent pro
  5. rTorrent hardlink or move
  6. rtorrent seed
  7. Rdownload folder
  8. rtorrent backup
  9. Symlink