spaam / svtplay-dl

Small command-line program to download videos from some streaming sites.
https://svtplay-dl.se
MIT License
731 stars 124 forks source link

TV10Play - 'len(elem)' or 'elem is not None' ? #120

Closed Sopor closed 10 years ago

Sopor commented 10 years ago

When i downloaded from TV10Play i got a message about 'len(elem)' or 'elem is not None' but how do i use that?

svtplay-dl -S -A http://www.tv10play.se/program/alaskas-vilda-vastern
INFO: Episode 1 of 4
/usr/local/lib/python2.7/dist-packages/svtplay_dl-0.9.2014.04.27-py2.7.egg/svtplay_dl/service/viaplay.py:81: FutureWarning: The behavior of this method will change in future versions.  Use specific 'len(elem)' or 'elem is not None' test instead.
  if geoxml.find("Success") and geoxml.find("Success").text == "false":
INFO: Subtitle: alaskas-vilda-vastern-avsnitt-1-tv10-play.srt
INFO: Outfile: alaskas-vilda-vastern-avsnitt-1-tv10-play.flv
RTMPDump v2.4
spaam commented 10 years ago

nice one. i got a fix for this one and i should look for some other ones during the weekend.