Changeset 36972
- Timestamp:
- 01/28/16 01:29:06 (8 years ago)
- Location:
- titan
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localparser_secret/beeg.sh
r36970 r36972 64 64 } 65 65 /^\}/ { if (table == "videos") { 66 print title "#" SRC " " SRC " streamvideo/" id "#https://img.beeg.com/236x177/" id ".jpg#" PARSER "_" id ".jpg#" NAME "#111"66 print title "#" SRC " " SRC " play video/" id "#https://img.beeg.com/236x177/" id ".jpg#" PARSER "_" id ".jpg#" NAME "#111" 67 67 title = "" 68 68 id = "" … … 95 95 } 96 96 97 stream()97 play() 98 98 { 99 99 $curlbin -o - $URL$PARAM | sed -e 's/{/{\n/g' -e 's/,/,\n/g' -e 's/\[/\[\n/g' -e 's/\}/\n\}/g' -e 's/\]/\n\]/g' | awk -v PARSER=$PARSER -v NAME=$NAME ' … … 273 273 mainmenu) $INPUT;; 274 274 videos) $INPUT;; 275 stream) $INPUT;;275 play) $INPUT;; 276 276 tags) $INPUT;; 277 277 page) $INPUT;; -
titan/mediathek/localparser_secret/bs.sh
r36966 r36972 1 1 2 #!/bin/bash 2 3 # titannit box parser for burning series … … 145 146 /<\/tr>/ { if (in_table_row == 1) { 146 147 if (episode != "") { 147 print title "#" SRC " " SRC " hoster " url "#http://atemio.dyndns.tv/mediathek/menu/s" PARAM2 "e" episode ".jpg#s" PARAM2 "e" episode ".jpg#" NAME "#0"148 print title "#" SRC " " SRC " hosterlist " url "#http://atemio.dyndns.tv/mediathek/menu/s" PARAM2 "e" episode ".jpg#s" PARAM2 "e" episode ".jpg#" NAME "#0" 148 149 title = "" 149 150 url = "" … … 161 162 } 162 163 163 hoster ()164 hosterlist() 164 165 { 165 166 $wgetbin $URL$PARAM -O - | awk -v PARAM=$PARAM -v PARAM2=$PARAM2 -v SRC=$SRC -v NAME=$NAME ' 166 BEGIN { in_hoster = 0167 BEGIN { in_hosterlist = 0 167 168 url = "" 168 169 title = "" 169 170 } 170 171 171 /<h3>Hoster dieser Episode<\/h3>/ { in_hoster = 1172 /<h3>Hoster dieser Episode<\/h3>/ { in_hosterlist = 1 172 173 next 173 174 } 174 175 175 /href=\"/ { if (in_hoster == 1) {176 /href=\"/ { if (in_hosterlist == 1) { 176 177 i = index($0, "href=\"") + 6 177 178 j = index(substr($0, i), "\">") - 1 … … 181 182 } 182 183 183 /<\/span> / { if (in_hoster == 1) {184 /<\/span> / { if (in_hosterlist == 1) { 184 185 i = index($0, "</span> ") + 8 185 186 j = index(substr($0, i), "</a>") - 1 186 187 title = substr($0, i, j) 187 print title "#" SRC " " SRC " video " url "#http://atemio.dyndns.tv/mediathek/menu/default.jpg#default.jpg#" NAME "#111" 188 i = index($0, "</span> ") + 8 189 j = index(substr($0, i), " -") - 1 190 pic = substr($0, i, j) 191 pic = tolower(pic) 192 print title "#" SRC " " SRC " hoster " url "#http://atemio.dyndns.tv/mediathek/menu/" pic ".jpg#" pic ".jpg#" NAME "#111" 188 193 } 189 194 next 190 195 } 191 196 192 /<\/ul>/ { in_hoster = 0197 /<\/ul>/ { in_hosterlist = 0 193 198 next 194 199 } 195 200 196 ' >/tmp/tithek/$PARSER.hoster .list197 echo "/tmp/tithek/$PARSER.hoster .list"198 } 199 200 video()201 ' >/tmp/tithek/$PARSER.hosterlist.list 202 echo "/tmp/tithek/$PARSER.hosterlist.list" 203 } 204 205 hoster() 201 206 { 202 207 $wgetbin $URL$PARAM -O - | awk -v PARAM=$PARAM -v PARAM2=$PARAM2 -v SRC=$SRC -v NAME=$NAME ' 203 BEGIN { in_hoster = 0208 BEGIN { in_hosterlist = 0 204 209 url = "" 205 210 title = "" 206 211 } 207 212 208 /<div id=\"video_actions\">/ { in_ video= 1213 /<div id=\"video_actions\">/ { in_hoster = 1 209 214 next 210 215 } 211 216 212 /<a href=\"/ { if (in_ video== 1) {217 /<a href=\"/ { if (in_hoster == 1) { 213 218 i = index($0, "<a href=\"") + 9 214 219 j = index(substr($0, i), "\"") - 1 … … 226 231 } 227 232 228 /<\/div>/ { in_ video= 0233 /<\/div>/ { in_hoster = 0 229 234 next 230 235 } 231 236 232 ' >/tmp/tithek/$PARSER. video.list233 # echo "/tmp/tithek/$PARSER. video.list"234 cat "/tmp/tithek/$PARSER. video.list"237 ' >/tmp/tithek/$PARSER.hoster.list 238 # echo "/tmp/tithek/$PARSER.hoster.list" 239 cat "/tmp/tithek/$PARSER.hoster.list" 235 240 } 236 241 … … 242 247 staffel) $INPUT;; 243 248 episode) $INPUT;; 249 hosterlist) $INPUT;; 244 250 hoster) $INPUT;; 245 video) $INPUT;;246 251 esac 247 252 -
titan/plugins/tithek/tithek_global.h
r36970 r36972 80 80 else if(ostrstr(tmplink, "zerocast") != NULL) 81 81 streamurl = zerocast(url, 0); 82 else if(ostrstr(tmplink, "beeg") != NULL)83 streamurl = beeg(url);84 82 else 85 83 textbox(_("Message"), _("The hoster is not yet supported !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 5, 0); … … 703 701 tmpstr = string_newline(tmpstr); 704 702 705 printf("tmpstr: %s\n", tmpstr); 706 streamurl = hoster(tmpstr); 707 if(streamurl == NULL) 703 if(ostrstr(link, ".sh play") != NULL) 708 704 streamurl = ostrcat(tmpstr, NULL, 0, 0); 709 printf("streamurl: %s\n", streamurl); 705 else if(ostrstr(link, ".sh hoster") != NULL) 706 streamurl = hoster(tmpstr); 710 707 711 708 free(tmpstr), tmpstr = NULL; … … 714 711 } 715 712 716 717 //int localparser_search(struct skin* grid, struct skin* listbox, struct skin* countlabel, struct skin* load, char* link, char* title)718 713 int localparser_search(struct skin* grid, struct skin* listbox, struct skin* countlabel, struct skin* load, char* link, char* title, char* searchstr, int flag) 719 714 { 720 printf("localparser_search: %s\n", link);721 722 715 char* tmpstr = NULL, *tmpstr1 = NULL, *line = NULL, *menu = NULL, *search = NULL; 723 716 int ret = 1, count = 0, i = 0;
Note: See TracChangeset
for help on using the changeset viewer.