Jump to content

alturismo

Moderators
  • Posts

    6,407
  • Joined

  • Last visited

  • Days Won

    53

Everything posted by alturismo

  1. @zacharyd3 may add something like this for his script i added this to my tvheadend script in case my file is in progress writing ... in case of handbrake i would set the seconds pretty high, only an idea in case the script runs while handbrake is in progress ... instead using a static value with sleep ... endfile=<file to move> waittime=<seconds to wait in loop if busy> while [ -n "$(lsof "$endfile")" ] do sleep $waittime echo "$endfile in use" done echo "File $endfile free"
  2. @zacharyd3 nice, may include inotify watch so he wont move files while in progress ? or is triggered by handbrake ?
  3. and you want to overwrite the old file then ?
  4. exactly, filebot recognizes movies and series and sort them into the proper folders ... and yes, there are dockers available, free ones (frozen older version) or new one (paid version of filebot).
  5. may just a sidenote, ever thought about filebot ? drop it there, it ll rename and move to the proper folder ...
  6. Hi, i updated my user script a little now with also moving my target files in a proper season 00 folder (2 digit instead 1 digit, default tvheadend behaviour) may someone could take a look if i may overlooked something, so far its looking good and working here ... what does it do, after i edited my .ts files and remuxed them with avisynth check if the .mkv is there, run, in case the season is 1 digit (season 1 instead season 01) it creates the proper season dir, mv the .mkv to the proper season dir, update tvh recording path, remove the files and (if season dir was changed cause 2 digit) old dir. if i have some errors or there are some things to make more simple, thanks ahead #!/bin/bash startpath="/mnt/cache/Media/" ### main place where to look for searchpattern="*.ts" ### what type of files to look for matchpattern=".mkv" ### compare if exist - work done ? extradelpattern=".idx2" ### extra delete type - sample, avidemux file seasonnaming="Season " ### Naming to check for season folders mediafolder="/Media" ### add to path beginning for TVHeadend update waittime=30 ### time to wait in case script runs while processing file tvhuser="user" tvhpass="pass" tvhip="192.168.1.2" cd $startpath find . -mindepth 2 -iname $searchpattern|sed "s|^\./||"|while read fname; do echo "$fname" sourcefile=$(basename "$fname") filenameonly="${sourcefile%.*}" endfile="$filenameonly$matchpattern" extrafile="$sourcefile$extradelpattern" filepath=$(dirname "$fname") seasonpath=$(basename "$filepath") if [[ $seasonpath == "$seasonnaming"* ]]; then seasonpathnew=$(echo "$seasonpath" | sed -E 's/\<[0-9]\>/0&/') seriespath=$(dirname "$filepath") tvhfinalpath="$mediafolder/$seriespath/$seasonpathnew/$endfile" else tvhfinalpath="$mediafolder/$filepath/$endfile" fi echo "output path is: $tvhfinalpath" cd "$startpath/$filepath" if [ -f "$endfile" ]; then echo "$endfile found, processing ..." sleep $waittime if [[ $seasonpath == "$seasonnaming"* ]]; then cd .. mkdir "$seasonpathnew" mv "$seasonpath/$endfile" "$seasonpathnew/" fi curl -s "http://"$tvhuser":"$tvhpass"@"$tvhip":9981/api/dvr/entry/filemoved" --data-urlencode "src=$mediafolder/$filepath/$sourcefile" --data-urlencode "dst=$tvhfinalpath" ### curl -s "http://"$tvhuser":"$tvhpass"@"$tvhip":9981/api/dvr/entry/filemoved" --data-urlencode "src=tvhfinalpath" --data-urlencode "dst=$mediafolder/$filepath/$sourcefile" ### uncomment to reverse cd "$startpath/$filepath" rm "$sourcefile" rm "$extrafile" if [[ ! $seasonpath == "$seasonpathnew" ]]; then cd .. rmdir "$seasonpath" fi else echo "$endfile not found." fi done
  7. tried bridge mode and set your port manually ? or, there are optional settings, therefore a mount of the .filebrpwser.json is necessary (here at least).
  8. forgot to mention, i already did that too, also changed the client max body ... to 10G, same result, nevermind, thanks for the tipp
  9. Hi, i also have the issue where nextcloud downloads are limited in size ... i think i readed about it also here but cant find it anymore. what i did meanwhile set the limit in nextcloud webgui to 10G, changed the nextcloud.subfolder.conf -> proxy_max_temp_file_size 8192m; may a hint where else there could be the limiter ? thanks ahead
  10. ok, i never managed it, nvm, offtopic here ... the card seems to work as it looks like, he could try tvheadend just to make sure card is ok.
  11. if this was working inside plex on ubuntu or winserver, wich settings for your card did you use there ?
  12. Hi, the multi switch shouldnt bother, but ... how you come to the conclusion plex supports directly dvb-s ? https://support.plex.tv/articles/225877427-supported-dvr-tuners-and-antennas/ https://support.plex.tv/articles/community-supported-tuners/ if you check the second link there is a note "currently we dont support satellite tuners" ... so, your way would be as sample, us tvheadend with your tuners, run a proxy for plex like xteve, then you can use plex ...
  13. may also try hostname instead ip, works here on all dockers from djoss in my setup, had the same issue with ip ...
  14. Hi, im also helpless on a script i would like to create usecase, i do my commercial cuts manually (as comskip aint so reliable) with avidemux, so i have a .ts file, after cutting i have a .idx2 file and my final .mkv file. now, what i would like to reach look for .ts file, check if .mkv exist, if so run a curl command including the file name, remove the ts and idx2 file. after looking for some kind of commands i guess its currently over my head, may someone has some hints where to start like finding the dupes and catch the filepath from location /Media instead /mnt/user/Media/ (needed for update TVHeadend curl command). for any tipps thanks ahead ### update, i guess i have it finally, may someone could take a look if its reliable or if theres something i may didnt checked out ... ### like this its updating live TVH recording and removing the .ts and .idx2 file, cause they need to be there for updating TVH. #!/bin/bash startpath="/mnt/cache/Media/" ### main place where to look for searchpattern="*.ts" ### what type of files to look for matchpattern=".mkv" ### compare if exist - work done ? extradelpattern=".idx2" ### extra delete type - sample, avidemux file mediafolder="/Media" ### add to path beginning for TVHeadend update waittime=30 ### time to wait in case script runs while processing file tvhuser="user" tvhpass="pass" tvhip="192.168.1.2" cd $startpath find . -mindepth 2 -iname $searchpattern|sed "s|^\./||"|while read fname; do echo "$fname" sourcefile=$(basename "$fname") filenameonly="${sourcefile%.*}" endfile="$filenameonly$matchpattern" extrafile="$sourcefile$extradelpattern" filepath=$(dirname "$fname") cd "$startpath/$filepath" if [ -f "$endfile" ] then echo "$endfile found, processing ..." curl -s "http://"$tvhuser":"$tvhpass"@"$tvhip":9981/api/dvr/entry/filemoved" --data-urlencode "src=$mediafolder/$filepath/$sourcefile" --data-urlencode "dst=$mediafolder/$filepath/$endfile" sleep $waittime rm "$sourcefile" rm "$extrafile" else echo "$endfile not found." fi done
  15. ok, happened again today i was testing some http api commands for tvheadend and one command stalled ... after that there was no more repsond, also could not quit the command at all, even a tvheadend restart (to definately kill the http connection) also didnt help, just as note. /etc/rc.d/rc.nginx restart <- worked then well here
  16. as i edited, was straightforward @ guac homepage ... but i didnt use guacamole as password, using own pass now, hope that wont hurt
  17. Hi, may a question as i installed a mariadb anyway for other application(s), is there a tutorial howto start and setup with mariadb ... i guess guacamole side its just to modify the credentials in /guacamole/guacamole.properties, but how to start with mariadb ... db schema etc ... if theres something thanks ahead, otherwise, its running perfectly as is ### ok, just followed the instuctions on the guac page and it was pretty straight forward, working and really spared half size
  18. use the privoxy vpn from binhex and connect jd to it in the connection settings
  19. as i also have this issue sometimes ... try hostname:port instead ip:port, works here, may solves your issue too ... i assume its a caching issue as there are many sites under 192.168.1.2:xxxx here ....
  20. ok, pretty sad, when u are sure it was working before updates, may use a older tag ? last one before some changes where done is :204 (4.3x from 3 weeks ago) linuxserver/tvheadend:204 in Repository ... may worth a try ?
  21. when i killall ttyd instances i then get a bad gateway instead about:blank when trying terminal again i assume ttyd need a restart, may a hint wich options to use ?
  22. g morning, just as quick test today morning i see it happened again, as note ... command was ps x the last entry from system log Mar 1 07:01:42 AlsServer login[12318]: ROOT LOGIN on '/dev/pts/2' is there no option to restart the service ? exept server reboot ?
  23. did you try the /desc.xml in the end ? --satip_xml http://192.168.178.30:8000/desc.xml
  24. and after a few seconds google may try this ... --satip_xml http://IPADDRESS:8080/desc.xml
×
×
  • Create New...