[RELEASE] LiveLeak.com
#31
LiveLeak v0.0.7 has been accepted into the official Kodi repository!

If you installed the ZIP from my GitHub repo, you'll probably have to uninstall it before you can then install it directly through Kodi from the official repo.

Latest changelog updates:
Quote:v0.0.7 (2017-2-9)
- Add support for expired time-based links
- Add better video numbering
- Various code cleanup, enhancement, refactoring

v0.0.6 (2017-2-5)
- Remove problematic video numbering, plus various cleanup

You may have noticed that if you watch a long video (about 10 minutes or more) and then try to watch another, it won't work unless you reload the page. That's is fixed now with the added support for expired time-based links.

I also added video numbering for cases where there are multiple videos, sharing the same thumbnail image, on the same page on the website. However, that feature doesn't work -- oops. I'll fix that on the next update.

There is also a bug that will not surface unless there is a problem retrieving a new, valid time-based video link. Blush It's not likely you'll experience it, and I'll fix that also on the next update.
Reply
#32
awesome stuff !!
Reply
#33
question: not sure if its the addon or libreelec verson
but lately when i go into featured, some links will cause it to go to a black screen with a black mouse and about 10 seconds later,it resets
kodi . anyone else ?
has been happening in last couple of days randomly
Reply
#34
(2017-02-26, 18:33)Swiper the Fox Wrote: question: not sure if its the addon or libreelec verson
but lately when i go into featured, some links will cause it to go to a black screen with a black mouse and about 10 seconds later,it resets
kodi . anyone else ?
has been happening in last couple of days randomly

Sorry, for the late response. I got no notification of your post.

Unfortunately, I can't shed much light on your issue since it doesn't show up on either of my two linux-based Kodi stations.
Reply
#35
For anyone who is a diehard Liveleaker like me, I advise you not to upgrade to Kodi v17 (Krypton) for the time being. If you don't have a compelling reason to upgrade now, you might want to wait until v17.1 is released.

There is a Container Refresh issue in v17.0 that, in this addon, causes the list of videos to be refreshed (and the Liveleak website to be queried multiple times yet again) after playing a video and even simply going back a page.

It is not just this addon that is affected, but is worse for this one due to the structure of the target website.

The upcoming Kodi v17.1 is reported to correct this issue.
Reply
#36
Hello Botster,

I'm the developer for plugin.video.reddit_viewer.
People post liveleak links on reddit.com like the ones below:

https://m.liveleak.com/view?i=78a_1441026542
https://www.liveleak.com/view?i=d6b_1490136896
https://liveleak.com/view?i=045_1490134714
https://www.liveleak.com/view?i=edf_1490151729
https://www.liveleak.com/view?i=5ce_1490...SComRtP.16
https://www.liveleak.com/view?i=0e0_1489870133

Can you add a feature on your plugin to accept links and play them
example:
plugin://plugin.video.liveleak/?mode=play&url=https%3A%2F%2Fm.liveleak.com%2Fview%3Fi%3D78a_1441026542
Reply
#37
(2017-03-22, 18:09)gedisony Wrote: Can you add a feature on your plugin to accept links and play them
example:
plugin://plugin.video.liveleak/?mode=play&url=https%3A%2F%2Fm.liveleak.com%2Fview%3Fi%3D78a_1441026542

Hello gedisony,

It might be possible to provide for something similar, but unfortunately it wouldn't be that simple.

Those "view" links are not URLs to playable media. Each is a link to a web page that contains zero or more playable videos. (Some people just post static images.) Each page has to first be parsed, and then the playable media links, if any, added to a DirectoryItems list with the mode argument = "play".

I would have to do a little restructuring, but I don't see any reason why I couldn't add a "page" mode that would parse just a single "view" page. However, I'm not yet familiar enough with Kodi to know how (well) that would work when called from another plugin.

If I provided a Directory of playable Items (or notification if none found), how would users get "Back" to your plugin? Would that be via the ".." parent link?
Or, perhaps I could just return a list of any playable item links, and your plugin could handle them however you wanted. But that sounds like the less modular/abstract way and potentially more problematic since the plugin isn't intended to provide an API.

What do you think?
Reply
#38
I'll use youtube as an example:
my addon parses reddit. when a user picks a youtube link I send it to the youtube addon to play the video.
actually, I still have to parse the youtube link to get the video id and then call the youtube addon to play that video id.
My addon has no business parsing youtube links. (what if google changes the way video id's are stored on the link?)
Ideally, the youtube addon should handle youtube links without other addons parsing for the video id but those guys are already busy enough as it is.


I use youtube-dl for liveleak links but it has been failing as of late.
mac1202 suggested to have the option to have your addon handle liveleak links.


Quote:If I provided a Directory of playable Items (or notification if none found), how would users get "Back" to your plugin?
No, don't do this. I need to call your plugin with isFolder=True and it won't be intuitive to the user. but yes, it will go back to my plugin if they pick ".."

if there are more than 1 playable item, just play the first video via setResolvedUrl. (there are ways around it but it requires the calling addon to know beforehand that the link resolves to multiple playable items)

Quote:...don't see any reason why I couldn't add a "page" mode that would parse just a single "view" page. However, I'm not yet familiar enough with Kodi to know how (well) that would work when called from another plugin.
you already have a "page" mode that plays a single page.
if I make an addDirectoryItem with url like so: (just an example, the url and src needs to be in urllib.quote_plus)

plugin://plugin.video.liveleak/?mode=play&url=https://cdn.liveleak.com/80281E/ll_a_s/2017/Mar/23/Liveleak-dot-com-fetch-79f0218039eb0a830a89a5014b20105b.mp4.h264_720p.mp4?d5e8cc8eccfb6039332f41f6249e92b06c91b4db65f5e99818bdde964e45d2d07f17&ec_rate=499&src=view?i=23d_1490316899

your plugin will play the video and return to my plugin after the video has finished.

but we're back to the youtube plugin example. I have to parse the liveleak page
and provide the url and src for your plugin needs to play the video.


So, basically I'm asking you to make a mode that parses and plays a single liveleak page.
That way, your addon evolves with liveleak. my addon does not need to worry if liveleak changes.
Reply
#39
(2017-03-24, 04:58)gedisony Wrote: you already have a "page" mode that plays a single page.
Well, no, I don't. Perhaps we're using terms differently here, but I don't consider a URL pointing to video media to be a page. I do indeed have a "play" mode, as you stated, which plays individual media -- but no mode that parses a single page containing media URLs.

Quote:So, basically I'm asking you to make a mode that parses and plays a single liveleak page.
That way, your addon evolves with liveleak. my addon does not need to worry if liveleak changes.
And that is what I was essentially offering but needed to point out that a single liveleak page is not playable. I was also asking exactly what action you preferred given the above.

Quote:if there are more than 1 playable item, just play the first video via setResolvedUrl.
And, that answers the question.

I will create a new mode that parses a single liveleak "view" page and plays the first playable media via setResolvedUrl or error notification if none found. But I think instead of naming the mode "page", I'll call it "view" to avoid potentially confusing terms. Smile
Reply
#40
There is a new version of the LiveLeak plugin uploaded to my GitHub repository:
https://github.com/botster/plugin.video.liveleak

Changes since the last update (including the bug-fixes I promised earlier):
Quote:v1.0.0 (2017-4-2)
- Add "view" mode for calling from another plugin
- Add "Back To Categories" directory item
- Update version number more inline w/ Semantic Versioning

If anyone wishes to use this plugin to view the first playable media on a LiveLeak page, just call it with a "mode" equal to "view" and "url" equal to the LiveLeak page to view. The url to view must be in the form of https://[www.|m.]liveleak.com/view?i=xxx_blahxxblah (www or m subdomains optional) and should be html quoted (Python's quote-plus).

You would call, for example:
plugin://plugin.video.liveleak/?mode=view&url=https://www.liveleak.com/view?i=d6b_1490136896

The plugin will return an error if 'liveleak.com/view?i=' is not in the url, the query string value contains invalid characters, or there is no playable media found on the page.

I'll be testing it in everyday use for a few days before I request an update to the Kodi repository. If you wish, feel free to test it out as well.
Reply
#41
Great work Botster!

I found a few links that wouldn't play mainly because of the additional query parameters
Can you add ability to ignore them when parsing

https://www.liveleak.com/view?i=17a_1491...comments=1
https://m.liveleak.com/view?i=168_1387018741&comments=1
https://www.liveleak.com/view?i=a0d_1470...comments=1
Reply
#42
I think I may have been a bit too aggressive in trying to prevent errors. Now, the only URL format rule is that it must contain 'liveleak.com/view?i='.

Please try again.
Reply
#43
Hi!

Could you please downgrade

Code:
<import addon="xbmc.python" version="2.24.0"/>

to

Code:
<import addon="xbmc.python" version="2.14.0"/>

to avoid getting "(dependencies not met)" on Helix 14.2

Thx!.
Atv2 - 4.4.4 - untethered - Helix 14.2
Reply
#44
(2017-04-03, 22:22)slukin Wrote: Hi!

Could you please downgrade

Code:
<import addon="xbmc.python" version="2.24.0"/>

to

Code:
<import addon="xbmc.python" version="2.14.0"/>

to avoid getting "(dependencies not met)" on Helix 14.2

Thx!.

Done. But, that is only for the version on GitHub until the update gets pulled to the Kodi repo.
Reply
#45
Quote:Done. But, that is only for the version on GitHub until the update gets pulled to the Kodi repo.

That was quick!!!...Thx so much!
Atv2 - 4.4.4 - untethered - Helix 14.2
Reply

Logout Mark Read Team Forum Stats Members Help
[RELEASE] LiveLeak.com 1