aCSTV — update to new version 1.08, fit for antiX22

Forum Forums General Software aCSTV — update to new version 1.08, fit for antiX22

  • This topic has 27 replies, 11 voices, and was last updated Feb 17-8:51 pm by Robin.
Viewing 13 posts - 16 through 28 (of 28 total)
  • Author
    Posts
  • #96160
    Moderator
    BobC

      I translated 1/3 of aCSTV to en_US yesterday, if you want to pick up where I left off.

      #96249
      Member
      Robin

        I translated 1/3 of aCSTV to en_US yesterday

        Many thanks, Bob! That sounds really great.

        Meanwhile I’ve caught two minor bugs again, which showed up unexpectedly after installing it on a different system (while this never happened on my working PC) Fix will be included into next package, along with all the translations. I still wonder why it had worked on the one antiX machine, and not on the other. The fix works on both now.

        For people who want to hotfix it in their installed version already, here the details: It can be easily get applied directly to the script.
        Just open the file
        /usr/local/bin/aCSTV.sh in geany with root permissions, e.g. by typing
        sudo geany /usr/local/bin/aCSTV.sh
        in a console window (roxterm).

        1.) Scroll down to line 952
        Change the line from
        952 <action>xdg-open $informationen</action>
        to
        952 <action>xdg-open $informationen &</action>

        (see screenshot)
        Hotfix-1

        This fix will allow to redraw correctly the button field when program preview information button was pressed, and the browser wasn’t opened already before.

        2.) Scroll down to lines 1046 / 1047
        change from

        1046  …[ $KEY_MOD = 0 ] && [ $KEY_RAW = 0x3d ]…
        1047   …[ $KEY_MOD = 0 ] && [ $KEY_RAW = 0x38 ]…

        to

        1046   …[ $KEY_SYM = minus ]…
        1047   …[ $KEY_SYM = b ]…

        (See screenshot)

        Hotfix-2

        The second fix will allow aCSTV to properly respond to the shortcuts “-” and “b” again.

        Save file back to disk and restart aCSTV if running.

        Windows is like a submarine. Open a window and serious problems will start.

        #96452
        Member
        oops

          … Nice and funny

          But I get sometimes a error when I try an automatic stations list actualization from settings dialog (foreign channels.lst), I need to do Crtl-C in the terminal.

          aCSTV.sh 
          ...
          /usr/local/bin/aCSTV.sh: ligne 911 : [: 7 : opérateur unaire attendu
          ...
          /usr/local/bin/aCSTV.sh: ligne 911 : [: 7 : opérateur unaire attendu
          /usr/local/bin/aCSTV.sh: ligne 911 : [: 7 : opérateur unaire attendu
          /usr/local/bin/aCSTV.sh: ligne 911 : [: 7 : opérateur unaire attendu
          Exiting... (Quit)
          2022/12/30 19:36:01 socat[29741] E connect(5, AF=1 "/dev/shm/aCSTV-mpv-socket-2965100", 35): Connection refused

          ligne 911:
          while [ $(($g+${c_len[$h]})) -le $l ]; do

          It will be interesting to also have a small script to actualize all the “/Stationslisten” folder in background for all contries.lst /Stationslisten-actualised-date. (it is a long process to check the good one)

          • This reply was modified 1 year, 3 months ago by oops.
          #96510
          Member
          Robin

            Many thanks oops! This is a good catch. After some checking this morning it turned out, the new algorithm for calculation of individual number of buttons for each line produces a division by zero error if only a single line is needed, causing an expected value not being set, making line 911 fail. The fix is easy. For a single line we need simply to avoid the calculation as such and set the expected value as fixed value in this case. This fix will be included in next packaged version, along with the updated translations now also.

            For people who want to hotfix it in their installed version already, here the details: It can be easily get applied directly to the script.
            Just open the file
            /usr/local/bin/aCSTV.sh in geany with root permissions, e.g. by typing
            sudo geany /usr/local/bin/aCSTV.sh
            in a console window (roxterm).

            1.) Scroll down to line 875
            Add the following lines around the already existing line:
            875 if [ $g -ne 1 ]; then
            already existing line: l=$(($len*$w/($g-1)/1000))

            877   else
            878       l=$len
            879   fi

            (see screenshot)
            hotfix-03

            Save file back to disk and restart aCSTV if running.

            This will allow to come up aCSTV again with stations lists contaning less than 4 active entries.

            It will not deal with completely empty lists containig zero entries. This needs a more sophisticated patch, scattered on multiple positions in script code. But as a hotfix you can apply the following:

            2.) scroll down to line 637
            add the line
            637 [ $i -eq 0 ] && exit 1

            (see screenshot)
            hotfix-04
            which will cause the progam to abort with error status properly when an empty stations list was provided. The full fix for this issue in the next package will include a way to allow user to add or activate an entry manually.

            Save file back to disk and restart aCSTV if running.

            Windows is like a submarine. Open a window and serious problems will start.

            #96525
            Member
            oops

              … Thank you to you … for the fast fix.

              #96529
              Moderator
              BobC

                I finished the translation for you 🙂

                #97471
                Member
                Robin

                  Many thanks Bob! Great. Received your odt file. Will have to convert it to pdf, so it get included into next package.

                  Windows is like a submarine. Open a window and serious problems will start.

                  #97472
                  Member
                  Robin

                    Found another bug.

                    aCSTV version: 1.08a

                    Issue: The new broadcasting-recording storing path is respected only after restarting aCSTV when changed in settigns dialog. All recordings before restart will get stored to the former location.

                    Hotfix:
                    1.) Open /usr/local/bin/aCSTV.sh file with root permissions in geany.
                    Add to line 437 the single backslash in the marked position in between of a double quote and a Dollar sign:

                    Change from

                    
                    437   nice -n -5 mpv --geometry=25:25 --autofit=50%x50% --no-border --input-ipc-server=\""$mpvsocket"\" --idle=yes --stream-record=\"$speicherpfad_video\$videodatei\" --screen=0 $fs --fs-screen=\$bildschirm $ot --ytdl-raw-options=abort-on-error= --ytdl-format='best[tbr<='\$bitrate']/bestvideo[tbr<='\$bitrate']+bestaudio' --hls-bitrate=\$((\$bitrate*10**3)) \$(cat $temporaerdatei_04) & jobs -p > \""$temporaerdatei_02"\"
                    

                    to

                    
                    437   nice -n -5 mpv --geometry=25:25 --autofit=50%x50% --no-border --input-ipc-server=\""$mpvsocket"\" --idle=yes --stream-record=\"\$speicherpfad_video\$videodatei\" --screen=0 $fs --fs-screen=\$bildschirm $ot --ytdl-raw-options=abort-on-error= --ytdl-format='best[tbr<='\$bitrate']/bestvideo[tbr<='\$bitrate']+bestaudio' --hls-bitrate=\$((\$bitrate*10**3)) \$(cat $temporaerdatei_04) & jobs -p > \""$temporaerdatei_02"\"
                    

                    (see screenshot)
                    bugfix01-a

                    2.) And then change the quoting within line 450 from

                    
                    450   --command='"'"'bash "'$temporaerdatei_19'" "'"$speicherpfad_video"''"'"'"$videodatei"'"'"'"'"'"' \
                    

                    to

                    
                    450   --command='"'"'bash "'$temporaerdatei_19'" "'"'"'"$speicherpfad_video$videodatei"'"'"'"'"'"' \
                    

                    (see screenshot)
                    bugfix01-b

                    Save file and restart aCSTV (if running).

                    After applying these changes aCSTV will respect new paths of broadcasting-recording location from settings menu immediately.
                    This bugfix will be included in next packaged version.

                    Windows is like a submarine. Open a window and serious problems will start.

                    #97493
                    Member
                    marcelocripe

                      Hello Robin.

                      Please make the pt_BR editable help file available in your GitLab.

                      Thanks.

                      – – – – –

                      Olá Robin.

                      Por favor, disponibilize o aquivo de ajuda editável pt_BR no seu GitLab.

                      Obrigado.

                      #99472
                      Moderator
                      caprea

                        acsTV version 1.08 installs and runs nicely on antiX23 alpha, too.i really would like to see it at least available in the repositories.Well worth it if one asks me.
                        The german channels list is almost complete and perfect.Maybe users from different countries could publish and share their working station lists here.
                        Many thanks again , @Robin

                        #99502
                        Member
                        marcelocripe

                          Maybe users from different countries could publish and share their working station lists here.

                          This will not be necessary Caprea, the current version of aCSTV already searches the GitHub which stores the IPTV channel lists from all countries. Lists are updated daily.

                          – – – – –

                          Maybe users from different countries could publish and share their working station lists here.

                          Isso não será necessário Caprea, a versão atual do aCSTV já faz a busca no GitHub que armazena as listas de canais IPTV de todos os países. A atualização das listas são diárias.

                          #99507
                          Member
                          techore

                            Wanted to say “Thank you!” for supporting and maintaining acstv.

                            #99888
                            Member
                            Robin

                              Many thanks, @caprea for checking aCSTV on antiX 23! Great it works for you fine there also. Can confirm, also for me it works on antiX 23, kernel 5.10.142 and kernel 6.1.10 both right out of the box when installed from the .deb package.

                              Stations lists always welcome, everybody could post them here at forum.

                              This will not be necessary Caprea, the current version of aCSTV already searches the GitHub which stores the IPTV channel lists from all countries. Lists are updated daily.

                              Generally this is correct, but there exist stations which are not listed there, since these are lists meant for international usage, while there usually exist additional official stations only available from within the country you live in (like all the streams in the German aCSTV list, served by the „Öffentlich-rechtliche Mediathek” for many years now). Stations like these are of greatest interest for people of the very country, and should be collected by poeple from the very country (since people from abroad can’t collect it without being able to receive and check the URLs). So it’s up to the local people in each country to improve the lists pulled by aCSTV from from iptv.org.

                              Btw, New version 1.09 is out. All hotfixes from above are included, so no need any longer to apply them when installing the new 1.09 version from .deb package.

                              Windows is like a submarine. Open a window and serious problems will start.

                            Viewing 13 posts - 16 through 28 (of 28 total)
                            • You must be logged in to reply to this topic.