Keresés

Új hozzászólás Aktív témák

  • rt06

    veterán

    válasz batagy #1513 üzenetére

    nalam igy nez ki a vonatkozo resz (watch konyvtar, valamint insert es finished esemeny)

    ez a ket sor beallit egy-egy watch konyvtarat a ~/torrent/watch/<tracker> utvonalon
    mindegyiknek lesz sajat letoltesi konyvtara ~/torrent/unfinished/<tracker> utvonalon - ezt a d.set_directory= allitja be
    a letoltes vegeztevel pedig mindketto atkerul a sajat konyvtaraba ~/torrent/finished/<tracker> utvonalon - ehhez a torrent felolvasasakor eltarolom a majdani utvonalat a d.set_custom= paranccsal a destination_directory valtozoban
    schedule = watch_others,5,5,"load.start=~/torrent/watch/others/*.torrent,d.set_directory=~/torrent/unfinished/others,d.set_custom=destination_directory\\,~/torrent/finished/others,view.set_visible=Others"
    schedule = watch_public,5,5,"load.start=~/torrent/watch/public/*.torrent,d.set_directory=~/torrent/unfinished/public,d.set_custom=destination_directory\\,~/torrent/finished/public,view.set_visible=Public"

    itt beallitok par datum alapu nezetet, ami kulso script-bol jon (het napja, honap)
    method.set_key = event.download.inserted_new,set_date_based_views,"view.set_visible=$execute_capture=~/torrent/.scripts/getday.sh;view.set_visible=$execute_capture=~/torrent/.scripts/getmonth.sh"
    itt megjegyzem a hozzaadas datumat ami szinten kulso script-bol jon
    method.set_key = event.download.inserted_new,set_insertion_date,"d.set_custom=completion_date,$execute_capture=~/torrent/.scripts/getdate.sh"

    a letoltes befejeztevel atallitom a letoltesi konyvtarat a korabban tarolt konyvtarra ("d.set_directory=$d.get_custom=destination_directory")
    ezutan atmozgatom az adatot is ("execute=mv,-u,--,$d.get_base_path=,$d.get_custom=destination_directory")
    megjegyzem a befejezes datumat ("d.set_custom=completion_date,$execute_capture=~/torrent/.scripts/getdate.sh")
    csinalok egy symlink-et a torrent neve es a letoltes datuma alapjan ("create_link=base_filename,\"$cat=~/torrent/links/[,$d.get_custom=completion_date,]_\"")
    majd futtatok egy unrar-t, (kulso script), ami kicsomagolja a rar-ral tomoritett allomanyokat, ha vannak ilyenek ("execute=~/torrent/.scripts/unrar.sh,$d.get_base_path=,&")
    method.set_key = event.download.finished,move__set_completion_date__create_link__unrar_in_background,"d.set_directory=$d.get_custom=destination_directory;execute=mv,-u,--,$d.get_base_path=,$d.get_custom=destination_directory;d.open=;d.set_custom=completion_date,$execute_capture=~/torrent/.scripts/getdate.sh;create_link=base_filename,\"$cat=~/torrent/links/[,$d.get_custom=completion_date,]_\",;execute=~/torrent/.scripts/unrar.sh,$d.get_base_path=,&"

    torles eseten pedig torlom a korabban letrehozott symlink-et is, hogy ne maradjon ott arvan
    method.set_key = event.download.erased,remove_link,"delete_link=base_filename,\"$cat=~/torrent/links/[,$d.get_custom=completion_date,]_\","

    ebbol igazabol neked nincs mindenre szukseged, csak leirtam mindent, hatha valaki hasznosnak talalja

    Politikailag korrekt, valamint munkahely- és gyermekbarát aláírás, amiben egyáltalán nincsen p*na.

Új hozzászólás Aktív témák