Skip to content

Commit

Permalink
BUMP releaseBB to 1.8.4
Browse files Browse the repository at this point in the history
- add cfscrape17.py to support  kodi 17.6 users
  • Loading branch information
bugatsinho committed Aug 30, 2019
1 parent a944b06 commit 15878df
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 8 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion addons.xml
Expand Up @@ -114,7 +114,7 @@
</addon>


<addon id="plugin.video.releaseBB" version="1.8.3" name="Release[COLOR orange][B]BB[/B][/COLOR]" provider-name="Bugatsinho">
<addon id="plugin.video.releaseBB" version="1.8.4" name="Release[COLOR orange][B]BB[/B][/COLOR]" provider-name="Bugatsinho">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.t0mm0.common" version="2.1.1"/>
Expand Down
2 changes: 1 addition & 1 deletion addons.xml.md5
@@ -1 +1 @@
ff46228133e058800b829492053b9f10
b56559526bd5cbd87c9535919f120229
6 changes: 3 additions & 3 deletions plugin.video.releaseBB/addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.releaseBB" version="1.8.3" name="Release[COLOR orange][B]BB[/B][/COLOR]" provider-name="Bugatsinho">
<addon id="plugin.video.releaseBB" version="1.8.4" name="Release[COLOR orange][B]BB[/B][/COLOR]" provider-name="Bugatsinho">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.t0mm0.common" version="2.1.1"/>
Expand All @@ -23,8 +23,8 @@
<twitter>https://twitter.com/bugatsinho</twitter>
<repo>https://bugatsinho.github.io/repo/</repo>
<email>bugatsinho@protonmail.com</email>
<news>+ [B][COLOR lime]1.8.3[/B][/COLOR] [COLOR gold](20-08-2019)[/COLOR]
- Fix Recommended movies issue</news>
<news>+ [B][COLOR lime]1.8.4[/B][/COLOR] [COLOR gold](30-08-2019)[/COLOR]
- add cfscrape17.py to support kodi 17.6 users</news>
<assets>
<icon>icon.png</icon>
<fanart>fanart.jpg</fanart>
Expand Down
3 changes: 3 additions & 0 deletions plugin.video.releaseBB/changelog.txt
@@ -1,3 +1,6 @@
+ [B][COLOR lime]1.8.4[/B][/COLOR] [COLOR gold](30-08-2019)[/COLOR]
- add cfscrape17.py to support kodi 17.6 users

+ [B][COLOR lime]1.8.3[/B][/COLOR] [COLOR gold](20-08-2019)[/COLOR]
- Fix Recommended movies issue

Expand Down
7 changes: 6 additions & 1 deletion plugin.video.releaseBB/default.py
Expand Up @@ -470,7 +470,12 @@ def GetLinks(section, url, img, plot): # Get Links


def cloudflare_mode(url):
from resources.lib.modules import cfscrape
kodi_ver = float(xbmc.getInfoLabel("System.BuildVersion")[:4])
if kodi_ver >= 18:
from resources.lib.modules import cfscrape as cfscrape
else:
from resources.lib.modules import cfscrape17 as cfscrape

scraper = cfscrape.create_scraper()
result = scraper.get(url).text
# xbmc.log('RESULTTTTT: %s' % result)
Expand Down
8 changes: 6 additions & 2 deletions plugin.video.releaseBB/resources/lib/modules/search.py
Expand Up @@ -48,7 +48,11 @@


def Search_bb(url):
from resources.lib.modules import cfscrape
kodi_ver = float(xbmc.getInfoLabel("System.BuildVersion")[:4])
if kodi_ver >= 18:
from resources.lib.modules import cfscrape as cfscrape
else:
from resources.lib.modules import cfscrape17 as cfscrape
scraper = cfscrape.create_scraper()
if 'new' == url:
keyboard = xbmc.Keyboard()
Expand Down Expand Up @@ -236,7 +240,7 @@ def Search_bb(url):

control.content(int(sys.argv[1]), 'videos')
control.directory(int(sys.argv[1]))
view.setView('videos', {'skin.estuary': 55, 'skin.confluence': 500, 'skin.xonfluence': 500})
view.setView('videos', {'skin.estuary': 55, 'skin.confluence': 500})


def del_search(query):
Expand Down

0 comments on commit 15878df

Please sign in to comment.