pyriscope icon indicating copy to clipboard operation
pyriscope copied to clipboard

changed url

Open truethug opened this issue 7 years ago • 5 comments

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

truethug avatar Apr 01 '17 00:04 truethug

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*)')

ghost avatar Apr 01 '17 20:04 ghost

This will work for live but not replays.

Or did I miss something?

On Sat, Apr 1, 2017 at 4:47 PM NyanGoat [email protected] 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 .

truethug avatar Apr 02 '17 18:04 truethug

I still get "No Valid URLS"

MxZeal avatar Apr 02 '17 19:04 MxZeal

@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

ghost avatar Apr 02 '17 19:04 ghost

Yeah that works for me. Thanks

On Sun, Apr 2, 2017 at 3:44 PM NyanGoat [email protected] 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 .

truethug avatar Apr 02 '17 23:04 truethug