mathsgrinds / ustvnow-iptv-m3u-playlist

Using your login details this script can grab the m3u8 links from the USTVNOW website
29 stars 26 forks source link

am i doing something wrong? cant get script to work #10

Closed Wolverine2018 closed 7 years ago

Wolverine2018 commented 7 years ago

hi, is script working? i get the following errors

Traceback (most recent call last): File "main.py", line 98, in Ustvnow(username, password) File "main.py", line 62, in Ustvnow j = json.loads(html) File "/usr/lib/python2.7/json/init.py", line 338, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded

mathsgrinds commented 7 years ago

Strange, I’ll have a look sometime, the addon USTVNOW # is still working so I don’t know why the scraper broken since my addon uses my scraper :P

I’ll investigate.

PS: I assumed you used a known and working username and password?

Wolverine2018 commented 7 years ago

hi, thanks for your prompt reply, yes its a newly created account so user and pass all good.i am able to log into their website ok using my email address.

Sent from my iPad

On 8 Aug 2017, at 00:08, MathsGrinds notifications@github.com<mailto:notifications@github.com> wrote:

Strange, I’ll have a look sometime, the addon USTVNOW # is still working so I don’t know why the scraper broken since my addon uses my scraper :P

I’ll investigate.

PS: I assumed you used a known and working username and password?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-320804732, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcZrCqwnMwy27EDUmTFB3ZqtBBkG7853ks5sV5jdgaJpZM4OwCwT.

jacknight commented 7 years ago

When I see that error, it’s because my username and password are incorrect, that would have been my first guess as well. Worth mentioning that the script just pulled the stream links fine for me.

Jack

On Aug 8, 2017, at 12:32, Wolverine2018 notifications@github.com wrote:

hi, thanks for your prompt reply, yes its a newly created account so user and pass all good.i am able to log into their website ok using my email address.

Sent from my iPad

On 8 Aug 2017, at 00:08, MathsGrinds notifications@github.com<mailto:notifications@github.com> wrote:

Strange, I’ll have a look sometime, the addon USTVNOW # is still working so I don’t know why the scraper broken since my addon uses my scraper :P

I’ll investigate.

PS: I assumed you used a known and working username and password?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-320804732, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcZrCqwnMwy27EDUmTFB3ZqtBBkG7853ks5sV5jdgaJpZM4OwCwT. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-320903742, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjdzn_txXjeP5Ndhvp-UMkGAbgOO8uEks5sWCsqgaJpZM4OwCwT.

Wolverine2018 commented 7 years ago

i must be missing something then guys. i tried applying user pass and ALL via command line and also within the python file. i did originally sign up with google plus then i reset password to login directly to site

Sent from my iPad

On 8 Aug 2017, at 10:41, Jack Knight notifications@github.com<mailto:notifications@github.com> wrote:

When I see that error, it’s because my username and password are incorrect, that would have been my first guess as well. Worth mentioning that the script just pulled the stream links fine for me.

Jack

On Aug 8, 2017, at 12:32, Wolverine2018 notifications@github.com<mailto:notifications@github.com> wrote:

hi, thanks for your prompt reply, yes its a newly created account so user and pass all good.i am able to log into their website ok using my email address.

Sent from my iPad

On 8 Aug 2017, at 00:08, MathsGrinds notifications@github.com<mailto:notifications@github.commailto:notifications@github.com> wrote:

Strange, I’ll have a look sometime, the addon USTVNOW # is still working so I don’t know why the scraper broken since my addon uses my scraper :P

I’ll investigate.

PS: I assumed you used a known and working username and password?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-320804732, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcZrCqwnMwy27EDUmTFB3ZqtBBkG7853ks5sV5jdgaJpZM4OwCwT. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-320903742, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjdzn_txXjeP5Ndhvp-UMkGAbgOO8uEks5sWCsqgaJpZM4OwCwT.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-320905872, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcZrChgGxAEna2qLL1Kg-nU-vocbmgFrks5sWC0qgaJpZM4OwCwT.

mathsgrinds commented 7 years ago

Okay, I'll have a look when I get home, thanks for letting me know!

Wolverine2018 commented 7 years ago

i just redownloaded from your github and put username and pass within py file again. its now got slightly further. now getting list index out of range after retrieving some url's

[image1.PNG]

Sent from my iPad

On 8 Aug 2017, at 10:56, MathsGrinds notifications@github.com<mailto:notifications@github.com> wrote:

Okay, I'll have a look when I get home, thanks for letting me know!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-320909550, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcZrCuHR6G1gSG23Ls-n1qA8LV-PUgr1ks5sWDCugaJpZM4OwCwT.

Wolverine2018 commented 7 years ago

how can i get the ts links as a playlist please guys?

Sent from my iPad

On 8 Aug 2017, at 10:56, MathsGrinds notifications@github.com<mailto:notifications@github.com> wrote:

Okay, I'll have a look when I get home, thanks for letting me know!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-320909550, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcZrCuHR6G1gSG23Ls-n1qA8LV-PUgr1ks5sWDCugaJpZM4OwCwT.

jacknight commented 7 years ago

just run the command with > your_playlist.m3u at the end python main.py > wolverine2018.m3u

Jack

On Aug 8, 2017, at 15:44, Wolverine2018 notifications@github.com wrote:

how can i get the ts links as a playlist please guys?

Sent from my iPad

On 8 Aug 2017, at 10:56, MathsGrinds notifications@github.com<mailto:notifications@github.com> wrote:

Okay, I'll have a look when I get home, thanks for letting me know!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-320909550, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcZrCuHR6G1gSG23Ls-n1qA8LV-PUgr1ks5sWDCugaJpZM4OwCwT. — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-320944760, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjdzqdEEDuhahw14RaVp0rS4Lg9NSKyks5sWFg9gaJpZM4OwCwT.

Wolverine2018 commented 7 years ago

i did, doesn't give the .ts extension on each so my app doesn't recognise them as transport streams

Sent from my iPad

On 8 Aug 2017, at 13:48, Jack Knight notifications@github.com<mailto:notifications@github.com> wrote:

just run the command with > your_playlist.m3u at the end python main.py > wolverine2018.m3u

Jack

On Aug 8, 2017, at 15:44, Wolverine2018 notifications@github.com<mailto:notifications@github.com> wrote:

how can i get the ts links as a playlist please guys?

Sent from my iPad

On 8 Aug 2017, at 10:56, MathsGrinds notifications@github.com<mailto:notifications@github.commailto:notifications@github.com> wrote:

Okay, I'll have a look when I get home, thanks for letting me know!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-320909550, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcZrCuHR6G1gSG23Ls-n1qA8LV-PUgr1ks5sWDCugaJpZM4OwCwT. — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-320944760, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjdzqdEEDuhahw14RaVp0rS4Lg9NSKyks5sWFg9gaJpZM4OwCwT.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-320945741, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcZrCgymHcsJz0XF8TkgLvVzxPGYqb1iks5sWFkzgaJpZM4OwCwT.

Wolverine2018 commented 7 years ago

ok if i open the m3u8, for each channel they play but from main playlist they don't? any way to extract top link for each channel automatically? i've used wget so far to download each channel m3u

Sent from my iPad

On 8 Aug 2017, at 13:48, Jack Knight notifications@github.com<mailto:notifications@github.com> wrote:

just run the command with > your_playlist.m3u at the end python main.py > wolverine2018.m3u

Jack

On Aug 8, 2017, at 15:44, Wolverine2018 notifications@github.com<mailto:notifications@github.com> wrote:

how can i get the ts links as a playlist please guys?

Sent from my iPad

On 8 Aug 2017, at 10:56, MathsGrinds notifications@github.com<mailto:notifications@github.commailto:notifications@github.com> wrote:

Okay, I'll have a look when I get home, thanks for letting me know!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-320909550, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcZrCuHR6G1gSG23Ls-n1qA8LV-PUgr1ks5sWDCugaJpZM4OwCwT. — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-320944760, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjdzqdEEDuhahw14RaVp0rS4Lg9NSKyks5sWFg9gaJpZM4OwCwT.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-320945741, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcZrCgymHcsJz0XF8TkgLvVzxPGYqb1iks5sWFkzgaJpZM4OwCwT.

Wolverine2018 commented 7 years ago

if i send you a list of a few channels in a bit can you check they work from the links your script generates pls?

Wolverine2018 commented 7 years ago

Animal Planet ESPN2 Freeform MSNBC USA

mathsgrinds commented 7 years ago

Hi guys, sorry I’m coming to this late, is the idea that we’d like the code modified to return the dot TS file?

Wolverine2018 commented 7 years ago

yes please. also have you tested how many streams can be run consecutively? some streams drop out and i have to renew the tokens.

also is there a way of only generating the 1280 x 720p as a playlist?

mathsgrinds commented 7 years ago

I’ve updated the code to allow for printing of the TS link and printing of the HD link.

Thanks.

mathsgrinds commented 7 years ago

Okay, so is it cool to close this issue now?

Wolverine2018 commented 7 years ago

sorry man i meant to reply, i'm getting access denied for the links. was generated from same public ip as im trying to run streams from

Sent from my iPad

On 13 Aug 2017, at 11:41, MathsGrinds notifications@github.com<mailto:notifications@github.com> wrote:

Okay, so is it cool to close this issue now?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-322034424, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcZrCmwpJB0ZODxV8seoYilBpWZ2qS6-ks5sXtK5gaJpZM4OwCwT.

mathsgrinds commented 7 years ago

Strange, when I run the python code with my username and password in it it give me the TS links, are you getting an access denied error when you run the code?

Wolverine2018 commented 7 years ago

i get the links with no extension. gives links ok but when i access them its forbidden

Sent from my iPad

On 13 Aug 2017, at 19:19, MathsGrinds notifications@github.com<mailto:notifications@github.com> wrote:

Strange, when I run the python code with my username and password in it it give me the TS links, are you getting an access denied error when you run the code?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-322058038, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcZrCp_0R4HsdhCUnV78JR3NnRTJx8yTks5sXz5AgaJpZM4OwCwT.

mathsgrinds commented 7 years ago

Do you mind sending me a link to examine please?

Wolverine2018 commented 7 years ago

sure. how can i message you directly?

Sent from my iPad

On 13 Aug 2017, at 19:40, MathsGrinds notifications@github.com<mailto:notifications@github.com> wrote:

Do you mind sending me a link to examine please?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mathsgrinds/ustvnow-iptv-m3u-playlist/issues/10#issuecomment-322059248, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcZrCkOWhSI1d_Hd-wsgANH8OtCF5GAUks5sX0MIgaJpZM4OwCwT.

mathsgrinds commented 7 years ago

No problem, can you send a direct message in github?

mathsgrinds commented 7 years ago

Just contact me using my contact details on my home page J

mathsgrinds commented 7 years ago

Hi all, I’ve updated the code as some users have reported their generated links not working. But it came at the expense of choosing TS over m3u8 and HD over SD.