janlukes / dmd-xbmc

Automatically exported from code.google.com/p/dmd-xbmc
0 stars 0 forks source link

Markiza website changes, voyo #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Apologies in advance for writing in English, trust me, it's better than my 
Slovak ;-)

What steps will reproduce the problem?
1. Attempting to open many of the Markiza streams as of 2 February 2012.

What is the expected output? What do you see instead?
Expect a working list/stream, instead errors

What version of the product are you using? On what operating system?
r87

Please provide any additional information below.

I haven't gone too far into the code, but as a quick solution for myself, 
editing a couple of lines got at least some functionality back.  There looks to 
be a bit of a revamp going on with the Markiza website, and some older content 
no longer available.

Anyway, the few changes I made, in a very hacky way, were:

svn/trunk/plugin.video.dmd-czech.markiza/default.py     

    addDir('Seriály',__baseurl2__+'/serialy/',2,icon)
    addDir('Relácie',__baseurl2__+'/relacie/',2,icon)
    addDir('Šport',__baseurl2__+'/sport/',2,icon)
    addDir('Spravodajstvo',__baseurl2__+'/spravodajstvo/',2,icon)  

Original issue reported on code.google.com by perso...@alanellis.co.uk on 2 Feb 2012 at 9:14

Attachments:

GoogleCodeExporter commented 9 years ago
thanx, i made new update tonight...

Original comment by jirka.vy...@gmail.com on 3 Feb 2012 at 9:24

GoogleCodeExporter commented 9 years ago
categories and multipage list repaired in r88
its possible some errors with loading show list.When you get plugin error, try 
openning again...
Tomorow i wont debug it...

Kategorie a multistránkové seznamy opraveny v r88
Je možné, že se při otvírání podkategorie vyskytne chyba pluginu, v 
takovém případě zkuste otevření znovu...
Zítra bych se chtěl pokusit tento bug odstranit...

Original comment by jirka.vy...@gmail.com on 3 Feb 2012 at 8:41

GoogleCodeExporter commented 9 years ago
Thank you very much.  Some of the errors appear to be because you need a 
subscription to stream anything over 14 days old now.

Original comment by perso...@alanellis.co.uk on 3 Feb 2012 at 9:50

GoogleCodeExporter commented 9 years ago
Yes, unfortunately we can not continue to view programs for subscribers ...

Bug i wrote with loading programs in categories or loading parts list is caused 
by poor voyo.sk server response...
I can not fix this bug, after the second or third input plugin loads full 
list...

Ano, bohužel nelze nadále sledovat pořady pro předplatitele...

Chyba kterou jsem psal s načítáním pořadů v kategoriích nebo 
načítání seznamu dílů je způsobena špatnou odezvou serveru voyo.sk
Nemohu to nijak ovlivnit, po druhém nebo třetím vstupu se seznam načte...

Original comment by jirka.vy...@gmail.com on 4 Feb 2012 at 11:08

GoogleCodeExporter commented 9 years ago
It actually does appear possible to bypass the subscription requirement on 
content older than 14 days by a little guessing of URLs.  It might be beyond 
the scope of this plugin to do this though.  As an example, it is currently 
possible to watch Particka from 28 January 2012, 
http://voyo.markiza.sk/produkt/relacie/1408-particka-28-01-2012-21-55 but 
something older, like the one from 16 January 2012 is not possible without 
subscription 
http://voyo.markiza.sk/produkt/relacie/1185-particka-16-01-2012-21-55

This was the command to download the 28 January episode with rmtpdump:

rtmpdump -r "rtmpe://vod.markiza.sk/voyosk" -W 
"http://voyo.markiza.sk/static/shared/app/flowplayer/13-flowplayer.cluster-3.2.1
-01-004.swf" -p 
"http://voyo.markiza.sk/produkt/relacie/1408-particka-28-01-2012-21-55" -y 
"mp4:2012/01/28/2012-01-28_PARTICKA-1.mp4" -o 2012-01-28_PARTICKA.flv

by fiddling with the parameters, it's possible to download the other episode:

rtmpdump -r "rtmpe://vod.markiza.sk/voyosk" -W 
"http://voyo.markiza.sk/static/shared/app/flowplayer/13-flowplayer.cluster-3.2.1
-01-004.swf" -p 
"http://voyo.markiza.sk/produkt/relacie/1185-particka-16-01-2012-21-55" -y 
"mp4:2012/01/16/2012-01-16_PARTICKA-1.mp4" -o 2012-01-16_PARTICKA-1.flv

The same method of course works for other shows too, like Adela Show:

rtmpdump -r "rtmpe://vod.markiza.sk/voyosk" -W 
"http://voyo.markiza.sk/static/shared/app/flowplayer/13-flowplayer.cluster-3.2.1
-01-004.swf" -p 
"http://voyo.markiza.sk/produkt/relacie/798-adela-show-10-12-2011-22-30" -y 
"mp4:2011/12/10/2011-12-10_ADELA-1.mp4" -o 2011-12-10_ADELA.flv

As I said, this might all be beyond the scope of this plugin, and might anger 
Markiza, just thought I'd let you know.

Original comment by perso...@alanellis.co.uk on 4 Feb 2012 at 11:18

GoogleCodeExporter commented 9 years ago
nice thing,i can make new version that make rtmp command based on episode 
name...

Original comment by jirka.vy...@gmail.com on 4 Feb 2012 at 6:09

GoogleCodeExporter commented 9 years ago
Hallo, im building new script for auto creating stream link, some show on 
markiza web can be automaticaly named, some show i have manual find its name 
bud some show name missing...

Can you test this show in rtmpdump and send it alias name???

Modre z neba - ???
Bez servitky - ???
Mafianske popravy - ???

Original comment by jirka.vy...@gmail.com on 6 Feb 2012 at 8:29

GoogleCodeExporter commented 9 years ago
Modre z neba: rtmpdump -r "rtmpe://vod.markiza.sk/voyosk" -W 
"http://voyo.markiza.sk/static/shared/app/flowplayer/13-flowplayer.cluster-3.2.1
-01-004.swf" -p 
"http://voyo.markiza.sk/produkt/relacie/669-modre-z-neba-24-12-2011-20-00" -y 
"mp4:2011/12/24/2011-12-24_MZN-1.mp4" -o 2011-12-24_MZN.flv

Bez servitky: I can't even see any listings for the show on voyo - perhaps not 
working? (http://voyo.markiza.sk/relacie/743-bez-servitky is blank)

Mafianske popravy:  Tried every variation I can think of, but couldn't work out 
the name

Sorry I wasn't more help :(

Original comment by perso...@alanellis.co.uk on 6 Feb 2012 at 10:57

GoogleCodeExporter commented 9 years ago
Finally worked it out.

Mafianske popravy: rtmpdump -r "rtmpe://vod.markiza.sk/voyosk" -W 
"http://voyo.markiza.sk/static/shared/app/flowplayer/13-flowplayer.cluster-3.2.1
-01-004.swf" -p 
"http://voyo.markiza.sk/produkt/relacie/896-mafianske-popravy-16-12-2011-09-00" 
-y "mp4:2011/12/16/2011-12-16_POPRAVY-1.mp4" -o 2011-12-16_POPRAVY.flv

Original comment by perso...@alanellis.co.uk on 6 Feb 2012 at 11:05

GoogleCodeExporter commented 9 years ago
New markiza.sk plugin v1.0 available in r90
thank you very much for cooperation :)
hopefully everything works good...

Original comment by jirka.vy...@gmail.com on 6 Feb 2012 at 11:36

GoogleCodeExporter commented 9 years ago
That's brilliant, thank you very much!

I only noticed one problem, pagination doesn't seem to be working properly for 
listing the shows in each category - I'm not sure when this stopped working. 

For example, choosing Serialy lists the last show as Mesto tieňov (which is 
the last show of page 1), choosing Relacie, the last show is Adela Show (again, 
the last show of page 1).

Again, huge thank you!

Original comment by perso...@alanellis.co.uk on 6 Feb 2012 at 12:09

GoogleCodeExporter commented 9 years ago
I can not fix this caused by poor voyo.sk server response, after the second or 
third opening category plugin load full list...

Original comment by jirka.vy...@gmail.com on 6 Feb 2012 at 1:00

GoogleCodeExporter commented 9 years ago
I think you misunderstood, but I also think I figured it out.

I think you're missing code to handle pagination of categories (mode 1, 
Serialy, Relacie, Sport, Spravodajstvo), which means you never show "Další 
strana" for mode=1

Copying your code from mode=5 makes it work (diff below)

60c60,70
< 
---
>     try:
>         pager = doc.find('div', 'pagination')
>         next_item = pager.findAll('a')
>           for item in next_item:
>       if item.getText(" ").encode('utf-8') != '>':
>       continue
>       else:
>       next_url = item['href']
>         addDir('Další strana >>',__baseurl__+ next_url,1,nexticon)
>     except:
>          print 'Stránkování nenalezeno',url

Original comment by perso...@alanellis.co.uk on 6 Feb 2012 at 2:02

GoogleCodeExporter commented 9 years ago
No, this is mistake :)
mode 1 finding all programs on all pages of category, so the list of categories 
dont have next page link :)
mode 5 find all episodes in selected program and next page url if available and 
make link for mode 5 that load next page list...

believe it or not :)

but i found error on line 43 
url = __baseurl2__+str(item.a['href'])
__baseurl2__ is wrong 
:)
I make new release r91

Original comment by jirka.vy...@gmail.com on 6 Feb 2012 at 4:46

GoogleCodeExporter commented 9 years ago
I see Markiza/Voyo have made this not work, and I can also see how to fix it (a 
few additional parameters on the rtmpdump command), but I'm concerned that they 
are deliberately trying to stop this from working (and perhaps even know about 
your efforts) :(

Original comment by perso...@alanellis.co.uk on 7 Feb 2012 at 9:22

GoogleCodeExporter commented 9 years ago
So, can you just provide a quick fix for those of us who want to keep bothering 
them? ;-) Mean then rtmpdump parameters.

Original comment by m...@mifo.sk on 9 Feb 2012 at 12:55

GoogleCodeExporter commented 9 years ago
Of course, sorry.  Change lqurl (line 122) in default.py to the following:

lqurl = 'rtmpe://vod.markiza.sk/voyosk playpath='+cesta+' conn=O:1 
conn=NN:0:2274958.000000 conn=NS:1: conn=NN:2:1408.000000 conn=NS:3:null 
conn=O:0 pageUrl='+url+' swfUrl='+swfurl+' swfVfy=true'

Original comment by perso...@alanellis.co.uk on 9 Feb 2012 at 12:57

GoogleCodeExporter commented 9 years ago
repaired in r92, thanx to perso...@alanellis.co.uk

Original comment by jirka.vy...@gmail.com on 9 Feb 2012 at 9:47

GoogleCodeExporter commented 9 years ago
momentalne nepredpokladam znovuzprovozneni

Original comment by jirka.vy...@gmail.com on 6 Jun 2012 at 9:06