rharkanson / pyriscope

A simple Periscope video downloader for Python.
MIT License
102 stars 22 forks source link

changed url #29

Open truethug opened 7 years ago

truethug commented 7 years ago

I've updated the url's URL_PATTERN = re.compile(r'(http://|https://|)(www.|)(pscp.tv|periscope.tv|perisearch.net)/(w|\S+)/(\S+)') REPLAY_PATTERN = re.compile(r'https://(\S*).(pscp.tv|periscope.tv)/(\S*)/(\S*)')

but replays are still not working: Error: ThreadPool Worker Exception: Unable to download chunk https://prod-video-eu-central-1.periscope.tv/periscope.tv/chunk_4.ts

ghost commented 7 years ago

For me it worked by just changing the URL_PATTERN, but not the REPLAY_PATTERN:

Taken from my processor.py file: URL_PATTERN = re.compile(r'(http://|https://|)(www.|)(pscp.tv|periscope.tv|perisearch.net)/(w|\S+)/(\S+)') REPLAY_URL = "https://{}/{}/{}" REPLAY_PATTERN = re.compile(r'https://(\S*).periscope.tv/(\S*)/(\S*)')

truethug commented 7 years ago

This will work for live but not replays.

Or did I miss something?

On Sat, Apr 1, 2017 at 4:47 PM NyanGoat notifications@github.com wrote:

For me it worked by just changing the URL_PATTERN, but not the REPLAY_PATTERN:

Taken from my processor.py file: URL_PATTERN = re.compile(r'(http://|https://|)( www.|)(pscp.tv|periscope.tv|perisearch.net)/(w|\S+)/(\S+ http://www.%7C)(pscp.tv%7Cperiscope.tv%7Cperisearch.net)/(w%7C%5CS+)/(%5CS+ )') REPLAY_URL = "https://{}/{}/{}" REPLAY_PATTERN = re.compile(r'https://(\S*).periscope.tv/(\S*)/(\S) <http://periscope.tv/(%5CS)/(%5CS*)>')

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rharkanson/pyriscope/issues/29#issuecomment-290946162, or mute the thread https://github.com/notifications/unsubscribe-auth/AFfFK26PNXjDklHPdX8DzlwZz3z9g2Ynks5rrrfhgaJpZM4MwSrH .

MxZeal commented 7 years ago

I still get "No Valid URLS"

ghost commented 7 years ago

@truethug This was for replays. Not really sure why it works for me then. Just found a random replay (https://www.pscp.tv/darrenrovell/1nAKEVALjVnGL) now and tried it again and it worked without issues.

image

truethug commented 7 years ago

Yeah that works for me. Thanks

On Sun, Apr 2, 2017 at 3:44 PM NyanGoat notifications@github.com wrote:

@truethug https://github.com/truethug This was for replays. Not really sure why it works for me then. Just found a random replay ( https://www.pscp.tv/darrenrovell/1nAKEVALjVnGL) now and tried it again and it worked without issues.

[image: image] https://cloud.githubusercontent.com/assets/10578172/24590420/d000ac54-17ec-11e7-81ce-d1f850781b75.png

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/rharkanson/pyriscope/issues/29#issuecomment-291009898, or mute the thread https://github.com/notifications/unsubscribe-auth/AFfFKxmEVVXqtjZ_IzzpDoSWjKR9sKLCks5rr_q7gaJpZM4MwSrH .