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

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

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