Ignore:
Timestamp:
Feb 26, 2017, 10:07:40 PM (3 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

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

    r40144 r40146  
    4141{
    4242#       echo "Category#$SRC $SRC category#http://atemio.dyndns.tv/mediathek/menu/category.jpg#category.jpg#$NAME#0" > $TMP/$FILENAME.list
    43         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/$FILENAME.list
     43        echo "Search 10#$SRC $SRC search '/youtube/v3/search?q=%search%&regionCode=US&part=snippet&hl=en_US&key=AIzaSyAd-YEOqZz9nXVzGtn3KWzYLbLaajhqIDA&type=video&maxResults=10'#http://atemio.dyndns.tv/mediathek/menu/search.jpg#search.jpg#$NAME#112" >$TMP/$FILENAME.list
     44        echo "Search 50#$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/$FILENAME.list
     45        echo "Search 100#$SRC $SRC search '/youtube/v3/search?q=%search%&regionCode=US&part=snippet&hl=en_US&key=AIzaSyAd-YEOqZz9nXVzGtn3KWzYLbLaajhqIDA&type=video&maxResults=100'#http://atemio.dyndns.tv/mediathek/menu/search.jpg#search.jpg#$NAME#112" >>$TMP/$FILENAME.list
    4446        echo "$TMP/$FILENAME.list"
    4547}
     
    4749search()
    4850{
    49         rm $TMP/$FILENAME.list > /dev/null 2>&1
    50         rm $TMP/cache.* > /dev/null 2>&1
    51 
    5251        if [ ! -e "$TMP/$FILENAME.list" ]; then
    5352                piccount=0
    54                 $curlbin "$URL/$FROM" -o "$TMP/cache.$FILENAME.1"
     53                $curlbin "$URL/$PAGE" -o "$TMP/cache.$FILENAME.1"
    5554                cat $TMP/cache.$FILENAME.1 | tr '\n' '\r' |  tr '\r' ' ' | tr '\n' ' ' | tr '\t' ' ' | sed 's/ \+/ /g' | sed 's!"kind":!\nkind":!g' | grep ^"kind" | grep videoId >$TMP/cache.$FILENAME.2
    5655
     
    8786
    8887                done 3<$TMP/cache.$FILENAME.2
    89 #               rm $TMP/cache.* > /dev/null 2>&1
     88                rm $TMP/cache.* > /dev/null 2>&1
    9089        fi
    9190        echo "$TMP/$FILENAME.list"
Note: See TracChangeset for help on using the changeset viewer.