Skip to content

Commit

Permalink
[plugin.video.crackle] 2024.7.22+matrix.1+matrix.1
Browse files Browse the repository at this point in the history
  • Loading branch information
eracknaphobia committed Jul 23, 2024
1 parent 2da255e commit 5e4aac0
Show file tree
Hide file tree
Showing 5 changed files with 235 additions and 176 deletions.
11 changes: 6 additions & 5 deletions plugin.video.crackle/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.crackle" name="Crackle" version="2023.10.11+matrix.1" provider-name="eracknaphobia">
<addon id="plugin.video.crackle" name="Crackle" version="2024.7.22+matrix.1+matrix.1" provider-name="eracknaphobia">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.requests"/>
Expand All @@ -10,15 +10,16 @@
<provides>video</provides>
</extension>
<extension point="xbmc.addon.metadata">
<platform>all</platform>
<platform>android</platform>
<summary lang="en_GB">Crackle delivers popular, award-winning TV, movies and originals. With no limit to how much you can watch across all your devices, you can binge all you want, wherever you want.</summary>
<description lang="en_GB">Crackle is a video streaming distributor of original web shows, Hollywood movies, and TV shows. Founded in the early 2000s as Grouper, and rebranded in 2007, Crackle is owned by Sony Pictures Entertainment.</description>
<news>
- Add Search Feature
- Switch Menu to localized strings
- Refactor for upstream changes
- Added pagination
- Playback is only possible on Android Devices now because of widevine VMP
- Added settings for page size and sort by
</news>
<language>en</language>
<platform>all</platform>
<license>GPL-2.0-or-later</license>
<forum></forum>
<source>https://github.com/eracknaphobia/plugin.video.crackle</source>
Expand Down
23 changes: 12 additions & 11 deletions plugin.video.crackle/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
mode = None
stream_type = None
genre_id = None
page_num = 1
icon_url = ''

if 'id' in params:
media_id = urllib.unquote_plus(params["id"])
Expand All @@ -17,28 +19,27 @@
stream_type = urllib.unquote_plus(params["type"])
if 'genre_id' in params:
genre_id = urllib.unquote_plus(params["genre_id"])
if 'page_num' in params:
page_num = int(params["page_num"])
if 'icon_url' in params:
icon_url = urllib.unquote_plus(params["icon_url"])

if mode is None:
if mode is None or mode == 1:
main_menu()

elif mode == 99:
list_genre(media_id)

elif mode == 100:
if genre_id is not None:
if media_id == 'shows':
list_shows(genre_id)
elif media_id == 'movies':
list_movies(genre_id)

# elif mode == 101:
# list_movies()
list_movies_shows(media_id, genre_id, page_num)

elif mode == 102:
get_episodes(media_id)
get_children(media_id, icon_url)

elif mode == 103:
if stream_type == "movies": media_id = get_movie_id(media_id)
elif mode == 103:
if stream_type == 'movies':
media_id = get_movie_id(media_id)
get_stream(media_id)

elif mode == 104:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,32 @@ msgstr ""

msgctxt "#30003"
msgid "Search"
msgstr ""
msgstr ""

msgctxt "#30004"
msgid "Page Size"
msgstr ""

msgctxt "#30005"
msgid "Sort By"
msgstr ""

msgctxt "#30006"
msgid "Latest"
msgstr ""

msgctxt "#30007"
msgid "Alphabetical (A-Z)"
msgstr ""

msgctxt "#30008"
msgid "Reverse Alpha (Z-A)"
msgstr ""

msgctxt "#30100"
msgid "Generals"
msgstr ""

msgctxt "#30270"
msgid "Error"
msgstr ""
Loading

0 comments on commit 5e4aac0

Please sign in to comment.