Jump to content

alturismo

Moderators
  • Posts

    7,453
  • Joined

  • Last visited

  • Days Won

    80

Everything posted by alturismo

  1. Hi, as i started to create a own docker may some basic questions as i didnt came further yet ... sample, if i want to use a variable in the run command wich i then can configure, how would that look like in the dockerfile sample from Dockerfile # port command CMD ["-port=34400"] now i tried with entries like ENV webport CMD ["-port=$webport"] or ARG ... i guess its pretty basic but after reading several things i really dont get a clue ... next step would be to add stuff like if, then ... but first it would be nice for this basic help thanks ahead
  2. may a question about a default www folder, sample, put something there for web downloads ... for an tip, thanks ahead
  3. ok, tested again out of interest and its working fine here with vlc and m3u playlist through reverse proxy, just as note.
  4. Hi, may someone has a hint how to get the xteve site working behind reverse proxy when i curl the sitenames (local 192.168...../web or my.domain/web) the result is exactly the same, so there are no differences. the symptom when using the external domain is an endless loading spinner on the site here a respond from curl in case that could help ... <!doctype html> <html> <head> <meta charset="utf-8"> <!--- <meta name="viewport" content="width=device-width, initial-scale=1.0" /> --> <title>xTeVe</title> <link rel="stylesheet" href="css/screen.css" type="text/css"> <link rel="stylesheet" href="css/base.css" type="text/css"> <script language="javascript" type="text/javascript" src="js/base.js"></script> <script language="javascript" type="text/javascript" src="js/menu.js"></script> <script language="javascript" type="text/javascript" src="js/data.js"></script> <script language="javascript" type="text/javascript" src="js/log.js"></script> <script language="javascript" type="text/javascript" src="js/users.js"></script> <script language="javascript" type="text/javascript" src="js/files.js"></script> <script language="javascript" type="text/javascript" src="js/mapping-editor.js"></script> </head> <body onload="javascript: pageReady();"> <div id="loading" class="block"> <div class="loader"> </div> </div> ............ screenshot from spinner (site started loading but doesnt go further) and here the reverse proxy conf part yet (it was simpler, but i tried adding all kinda things i readed across the web. server { listen 443 ssl; root /config/www; index index.html index.htm index.php; server_name web.*; ssl_certificate /config/keys/letsencrypt/fullchain.pem; ssl_certificate_key /config/keys/letsencrypt/privkey.pem; ssl_dhparam /config/nginx/dhparams.pem; ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA'; ssl_prefer_server_ciphers on; client_max_body_size 0; location / { auth_basic off; allow all; # Allow all to see content # auth_basic "Restricted"; # auth_basic_user_file /config/nginx/.htpasswd; include /config/nginx/proxy.conf; proxy_pass http://192.168.1.2:34400; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; access_log off; } } in case someone has a idea, thanks ahead
  5. its the latest docker updates, every 2nd is working ... the last one 9 hours ago is working again. you can also just use a tag wich works for you ... just as note
  6. i just tried here also, with and without reverse proxy .. so, using directly external links as described it works, through reverse proxy here also not, but i guess thats a "stream" thing to add to reverse proxy ... in case u figure it, let me know
  7. as those tickets are only valid for a few minutes afaik ... may just create your m3u with user:pass once by editing ... if its only for your personal usage etc ...
  8. i also have this behavior in the official plex docker, i could narrow it down here due using xml based epg and not the PMS epg. i already made some posts about it there ... may its the same in your setup ... for now i made a cron to restart daily in the night.
  9. yes, thats correct. always worked here out of the box wipe /appdata/guacamole and uninstall docker, reinstall docker with default settings (removing the .xml may before) ... in case u havent done so yet
  10. you using the correct repo (there are 2, one with and without database) ?
  11. Hi, before u move to look if file is busy, i updated my tvheadend move and update script now a little and dont use the loop as described, i use now if file is busy do nothing, next cron will come so i dont touch anything while there is any actions running. i look for new records from tvheadend (.ts files), if there is one and NOT in use i start avidemux to read the file (prepare for my com cut, creating idx2), if .ts and .idx2 is there i look for the .mkv (after i did my work cutting and remuxing), if the .mkv is there and NOT in use i move it now to a proper folder (sample, season 02 instead season 2, 2 digit ...), update TVHeadend record path, remove the "old" .ts and .idx2 and empty season 2, update emby and plex. the if ! [ -n "$(lsof "$sourcefile")" ]; then ... will trigger if NOT in use else ... i went away from the while loop cause it could take longer then my cron job and i dont want to run multiply instances now, so like this i can run the cron like every 5 minutes and im good. sample from log echo Hawaii Five-0 - S09E09 - Das letzte Kapitel.ts.idx2 already there... Hawaii Five-0 - S09E09 - Das letzte Kapitel.mkv found, processing ... File Hawaii Five-0 - S09E09 - Das letzte Kapitel.mkv free ... in the end its like i want it actually, i hope i didnt mess anything up im sure it could be done more simple, but as my scripting skills are very old ... my suggestion was to check if files are busy in case handbrake is still running ... #!/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 - here, avidemux file seasonnaming="Season " ### Naming to check for season folders mediafolder="/Media" ### add to path beginning for TVHeadend update waittime=3 ### time to wait if file is in use embyapikey="embyapikeyhere" ### api key to update emby library tvhuser="username" tvhpass="password" 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 ! [ -n "$(lsof "$sourcefile")" ]; then if ! [ -f "$extrafile" ]; then docker exec Avidemux /usr/bin/avidemux3_cli --load /storage/"$fname" --quit > /dev/null echo echo "$sourcefile loading in avidemux ..." else echo echo "$extrafile already there..." fi else echo echo "$sourcefile in use ..." fi if [ -f "$endfile" ]; then echo "$endfile found, processing ..." if ! [ -n "$(lsof "$endfile")" ]; then echo "File $endfile free" 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" cd "$startpath/$filepath" rm "$sourcefile" rm "$extrafile" if [[ ! $seasonpath == "$seasonpathnew" ]]; then cd .. rmdir "$seasonpath" fi curl -s "http://192.168.1.2:32400/library/sections/1/refresh" curl -s "http://192.168.1.2:8096/emby/Library/Refresh?api_key=$embyapikey" -H "accept: */*" -d "" else echo "$endfile in use" fi else echo "$endfile not found." fi done
  12. name it guide.xml and drop it into /data folder, enable the xml file grabber. that should be it.
  13. @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"
  14. @zacharyd3 nice, may include inotify watch so he wont move files while in progress ? or is triggered by handbrake ?
  15. and you want to overwrite the old file then ?
  16. 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).
  17. may just a sidenote, ever thought about filebot ? drop it there, it ll rename and move to the proper folder ...
  18. 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
  19. 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).
  20. forgot to mention, i already did that too, also changed the client max body ... to 10G, same result, nevermind, thanks for the tipp
  21. 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
  22. 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.
  23. if this was working inside plex on ubuntu or winserver, wich settings for your card did you use there ?
  24. 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 ...
  25. may also try hostname instead ip, works here on all dockers from djoss in my setup, had the same issue with ip ...
×
×
  • Create New...