Ignore:
Timestamp:
10/09/16 18:42:01 (7 years ago)
Author:
Stephan
Message:

fix typos

Location:
titan/mediathek/localparser_free
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localparser_free/giga.sh

    r37513 r39244  
    3232mainmenu()
    3333{
    34         echo "Category#$SRC $SRC category#http://atemio.dyndns.tv/mediathek/menu/categoty.jpg#categoty.jpg#$NAME#0" > /tmp/tithek/$PARSER.$INPUT.list
     34        echo "Category#$SRC $SRC category#http://atemio.dyndns.tv/mediathek/menu/category.jpg#category.jpg#$NAME#0" > /tmp/tithek/$PARSER.$INPUT.list
    3535#       echo "Suche#$SRC $SRC suche#http://atemio.dyndns.tv/mediathek/menu/search.jpg#giga.jpg#$NAME#0" >> /tmp/tithek/$PARSER.$INPUT.list
    3636        echo "/tmp/tithek/$PARSER.$INPUT.list"
     
    5151                        TITLE="`echo $ROUND0 | sed 's!/! !g' | sed 's!-! !g'` Page $i"
    5252                        echo "$TITLE#$SRC $SRC page $ROUND0/page/$i#http://atemio.dyndns.tv/mediathek/menu/page.jpg#page.jpg#$NAME#0" >> /tmp/tithek/$PARSER.$INPUT.list
    53                         i=`expr $i + 1` 
     53                        i=`expr $i + 1`
    5454                        done
    5555                done
     
    6363                $wgetbin $URL/$PAGE -O $TMP/cache.$PARSER."$filename"."1"
    6464                cat $TMP/cache.$PARSER."$filename"."1" | tr '\r' ' ' | tr '\n' '\r' | tr '\t' ' ' | sed 's/<section/\n<section/g' | grep '^<section id="content">' | sed 's/<li id="/\n<li id="/g' | grep '^<li id="' | sed 's/&quot;/"/g' >$TMP/cache.$PARSER."$filename"."2"
    65                
     65
    6666                piccount=0
    6767
     
    7070                        URL=`echo $ROUND2 | sed 's/iframe data-tracking-origin-url="/\niframe data-tracking-origin-url="/g' | grep '^iframe data-tracking-origin-url=' | cut -d'"' -f2 | cut -d'?' -f1`
    7171                        TITLE=`echo $ROUND2 | sed 's/ alt="/\n alt="/g' | grep '^ alt=' | cut -d'"' -f2 | cut -d'"' -f1`
    72                
    73                         if [ -z "$PIC" ]; then 
     72
     73                        if [ -z "$PIC" ]; then
    7474                                PIC="http://atemio.dyndns.tv/mediathek/menu/default.jpg"
    7575                        fi
    76        
     76
    7777                        if [ `echo $PIC | grep ".png" | wc -l` -eq 0 ];then
    7878                                PICEXT=jpg
     
    8080                                PICEXT=png
    8181                        fi
    82                
     82
    8383                        TITLE=`echo $TITLE | sed -e 's/ &amp; / und /g' -e 's/&amp;/ und /g' -e "s/&#8217;/'/g" -e 's/&#8211;/-/g' -e 's/&#8230;/.../g' -e 's/&#8220;/"/g' -e 's/&#8221;/"/g' -e "s/&#8216;/'/g" -e 's/#//g'`
    84                
     84
    8585                        if [ ! -z "$TITLE" ] && [ ! -z "$URL" ];then
    8686                                piccount=`expr $piccount + 1`
    87                                
     87
    8888                                LINE="$TITLE#$URL#$PIC#$PARSER_$piccount.$PICEXT#$NAME#14"
    8989                                echo "$LINE" >> /tmp/tithek/$PARSER.$INPUT.list
     
    9191                done 3<$TMP/cache.$PARSER."$filename"."2"
    9292                rm $TMP/cache.* > /dev/null 2>&1
    93         fi     
     93        fi
    9494        echo "/tmp/tithek/$PARSER.$INPUT.list"
    9595}
  • titan/mediathek/localparser_free/youtube.sh

    r37547 r39244  
    4040mainmenu()
    4141{
    42 #       echo "Category#$SRC $SRC category#http://atemio.dyndns.tv/mediathek/menu/categoty.jpg#categoty.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list
     42#       echo "Category#$SRC $SRC category#http://atemio.dyndns.tv/mediathek/menu/category.jpg#category.jpg#$NAME#0" > $TMP/$PARSER.$INPUT.list
    4343        echo "Search#$SRC $SRC search '/youtube/v3/search?q=%search%&regionCode=US&part=snippet&hl=en_US&key=AIzaSyAd-YEOqZz9nXVzGtn3KWzYLbLaajhqIDA&type=video&maxResults=50'#http://atemio.dyndns.tv/mediathek/menu/search.jpg#search.jpg#$NAME#112" >$TMP/$PARSER.$INPUT.list
    4444        echo "$TMP/$PARSER.$INPUT.list"
     
    6060                        URL="https://www.youtube.com/get_video_info?el=leanback&cplayer=UNIPLAYER&cos=Windows&height=1080&cbr=Chrome&hl=en_US&cver=4&ps=leanback&c=TVHTML5&video_id=$ID&cbrver=40.0.2214.115&width=1920&cosver=6.1&ssl_stream=1"
    6161
    62                         if [ -z "$TITLE" ];then 
     62                        if [ -z "$TITLE" ];then
    6363                                TITLE=`echo $ROUND | cut -d"<" -f2 | cut -d">" -f2`
    6464                        fi
    6565
    66                         if [ -z "$PIC" ]; then 
     66                        if [ -z "$PIC" ]; then
    6767                                PIC="http://atemio.dyndns.tv/mediathek/menu/default.jpg"
    6868                        fi
    69                
     69
    7070                        TITLE=`echo $TITLE | sed -e 's/&#038;/&/g' -e 's/&amp;/und/g' -e 's/&quot;/"/g' -e 's/&lt;/\</g' -e 's/&#034;/\"/g' -e 's/&#039;/\"/g' -e 's/#034;/\"/g' -e 's/#039;/\"/g' -e 's/&szlig;/Ãx/g' -e 's/&ndash;/-/g' -e 's/&Auml;/Ã
    7171/g' -e 's/&Uuml;/ÃS/g' -e 's/&Ouml;/Ã/g' -e 's/&auml;/ä/g' -e 's/&uuml;/ü/g' -e 's/&ouml;/ö/g' -e 's/&eacute;/é/g' -e 's/&egrave;/è/g' -e 's/%F6/ö/g' -e 's/%FC/ü/g' -e 's/%E4/ä/g' -e 's/%26/&/g' -e 's/%C4/Ã
     
    8282                                echo "$LINE" >> $TMP/$PARSER.$INPUT.$FILENAME.list
    8383                        fi
    84        
     84
    8585                done 3<$TMP/cache.$PARSER.$INPUT.$FILENAME.2
    8686                rm $TMP/cache.* > /dev/null 2>&1
Note: See TracChangeset for help on using the changeset viewer.