Giter VIP home page Giter VIP logo

rtv-downloader's People

Contributors

radzak avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rtv-downloader's Issues

TypeError: can't compare offset-naive and offset-aware datetimes

When trying to download some videos from Ipla (not all of them), I got the following stacktrace:

  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/bin/rtv", line 11, in <module>
    sys.exit(main())
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/rtv/cli.py", line 22, in main
    rtv.load(set(urls))
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python
3.6/site-packages/rtv/rtvdownloader.py", line 28, in load
    extractor.run()
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/rtv/extractors/common.py", line 59, in run
    entries = self.extract()
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/rtv/extractors/ipla.py", line 110, in extract
    'date': self.get_date(),
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/rtv/extractors/ipla.py", line 62, in get_date
    found_dates = search_dates(description, languages=['pl'])
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/dateparser/search/__init__.py", line 33, in search_dates
    result = _search_with_detection.search_dates(text=text, languages=languages, settings=settings)
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/dateparser/conf.py", line 81, in wrapper
    return f(*args, **kwargs)
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/dateparser/search/search.py", line 221, in search_dates
    settings=settings)}
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/dateparser/search/search.py", line 153, in search_parse
    original=original, translated=translated, settings=settings)
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/dateparser/search/search.py", line 116, in parse_found_objects
    parsed_item = self.parse_item(parser, item, translated[i], parsed, need_relative_base)
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/dateparser/search/search.py", line 102, in parse_item
    parsed_item = parser.get_date_data(item)
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/dateparser/date.py", line 404, in get_date_data
    locale, date_string, date_formats, settings=self._settings)
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/dateparser/date.py", line 177, in parse
    return instance._parse()
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/dateparser/date.py", line 187, in _parse
    date_obj = parser()

  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/dateparser/date.py", line 209, in _try_parser
    self._get_translated_date(), settings=self._settings)
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/dateparser/conf.py", line 81, in wrapper
    return f(*args, **kwargs)
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/dateparser/date_parser.py", line 26, in parse
    date_obj, period = parse(date_string, settings=settings)
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/dateparser/parser.py", line 70, in parse
    raise exceptions.pop(-1)
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/dateparser/parser.py", line 64, in parse
    res = parser(datestring, settings)
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/dateparser/parser.py", line 442, in parse
    dateobj = po._correct_for_time_frame(dateobj)
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/dateparser/parser.py", line 387, in _correct_for_time_frame
    if self.now < dateobj.replace(tzinfo=None):
TypeError: can't compare offset-naive and offset-aware datetimes

Changing line 387 in dateparser/parser.py to if self.now.replace(tzinfo=None) < dateobj: helps (the video gets downloaded), but that's probably not the right solution.

Fails to download Włatcy Móch episodes

Trying to download the first (and other) episodes of Włatcy Móch fails for me with:

$ rtv https://www.ipla.tv/wideo/serial/Wlatcy-Moch/728/Sezon-1/729/Wlatcy-Moch-Lekcja-1/1312
Traceback (most recent call last):
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/bin/rtv", line 10, in <module>
    sys.exit(main())
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/rtv/cli.py", line 22, in main
    rtv.load(set(urls))
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/rtv/rtvdownloader.py", line 28, in load
    extractor.run()
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/rtv/extractors/common.py", line 59, in run
    entries = self.extract()
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/rtv/extractors/ipla.py", line 105, in extract
    url = self.get_real_url()
  File "/home/goblin/.local/share/virtualenvs/rtv-downloader-2I2VannR/lib/python3.6/site-packages/rtv/extractors/ipla.py", line 89, in get_real_url
    getmedia_url = source['authorizationServices']['pseudo']['url']
KeyError: 'url'

Widevine protected content

Some huge polish VOD site (avoiding to mentioning its name to avoid google search results) , which name starts with "I", protects more and more of its content by Widevine.
Your script is failing to download this material. I understand this protection scheme is hard to crack, however, the Scene has found a way of doing that. I would be greatly interested in a working way to download FullHD content from these sites.

Example search: "Krzyk (1982)" available in Full HD

If you could provide a way (can be non public), I am ready to fully appreciate your effort.

Greetings

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.