Changeset 40916 for titan/mediathek


Ignore:
Timestamp:
Sep 4, 2017, 11:32:52 PM (3 years ago)
Author:
obi
Message:

tithek movie add movies genre section

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localparser_secret/movie4k.sh

    r40915 r40916  
    5656        echo "Kino#$SRC $SRC kino 'index.php?lang=de'#http://atemio.dyndns.tv/mediathek/menu/kino.jpg#kino.jpg#$NAME#0" >$TMP/$FILENAME.list
    5757        echo "Movies (A-Z)#$SRC $SRC sorted#http://atemio.dyndns.tv/mediathek/menu/Movies.jpg#Movies.jpg#$NAME#0" >>$TMP/$FILENAME.list
     58        echo "Movies (Genre)#$SRC $SRC genre#http://atemio.dyndns.tv/mediathek/menu/Movies.genre.jpg#Movies.genre.jpg#$NAME#0" >>$TMP/$FILENAME.list
    5859        echo "Search#$SRC $SRC search 'movies.php?list=search&search=%search%'#http://atemio.dyndns.tv/mediathek/menu/search.jpg#search.jpg#$NAME#112" >>$TMP/$FILENAME.list
    5960        echo "$TMP/$FILENAME.list"
     61}
     62
     63genre()
     64{
     65        watchlist="
     66                movies-genre-1-Action.html
     67                movies-genre-58-Adult.html
     68                movies-genre-4-Adventure.html
     69                movies-genre-5-Animation.html
     70                movies-genre-6-Biography.html
     71                movies-genre-27-Bollywood.html
     72                movies-genre-3-Comedy.html
     73                movies-genre-7-Crime.html
     74                movies-genre-8-Documentary.html
     75                movies-genre-2-Drama.html
     76                movies-genre-9-Family.html
     77                movies-genre-10-Fantasy.html
     78                movies-genre-13-History.html
     79                movies-genre-14-Horror.html
     80                movies-genre-15-Music.html
     81                movies-genre-56-Musical.html
     82                movies-genre-17-Mystery.html
     83                movies-genre-26-Other.html
     84                movies-genre-59-Reality-TV.html
     85                movies-genre-20-Romance.html
     86                movies-genre-21-Sci-Fi.html
     87                movies-genre-55-Short.html
     88                movies-genre-22-Sport.html
     89                movies-genre-23-Thriller.html
     90                movies-genre-24-War.html
     91                movies-genre-25-Western.html
     92                "
     93        rm $TMP/$FILENAME.list > /dev/null 2>&1
     94
     95        for ROUND0 in $watchlist; do
     96                TITLE=`echo $ROUND0 | cut -d"-" -f4 | sed 's/.html//'`
     97                NUMMER=`echo $ROUND0 | cut -d"-" -f3`
     98
     99                filename=`echo $TITLE |tr [A-Z] [a-z]` 
     100                echo "$TITLE#$SRC $SRC search 'movies-genre-$NUMMER-' 1 '.html'#http://atemio.dyndns.tv/mediathek/menu/$filename.jpg#$filename.jpg#$NAME#0" >> $TMP/$FILENAME.list
     101        done
     102        echo "$TMP/$FILENAME.list"
    60103}
    61104
     
    250293        kino) $INPUT;;
    251294        sorted) $INPUT;;
     295        genre) $INPUT;;
    252296esac
Note: See TracChangeset for help on using the changeset viewer.