Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
vlmaksime committed Jan 7, 2020
2 parents 8849ea3 + 7548d1a commit 27619e8
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 58 deletions.
4 changes: 2 additions & 2 deletions plugin.video.filmix/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.video.filmix" version="1.2.7" name="Filmix" provider-name="vl.maksime">
<addon id="plugin.video.filmix" version="1.2.8" name="Filmix" provider-name="vl.maksime">
<requires>
<import addon="xbmc.python" version="2.19.0"/>
<import addon="script.module.simplemedia" version="1.2.2"/>
Expand All @@ -18,7 +18,7 @@
<website>https://filmix.co/</website>
<email>[email protected]</email>
<source>https://github.com/vlmaksime/plugin.video.filmix</source>
<news>v1.2.7 (2019-09-30)[CR]- Сертификаты вынесены в отдельное дополнение[CR][CR]v1.2.6 (2019-09-15)[CR]- Обновлены сертификаты[CR][CR]v1.2.5 (2019-08-20)[CR]- Обновлены сертификаты[CR]- Исправлена работа фильтров на Kodi 16 и старше[CR][CR]v1.2.4 (2019-08-11)[CR]- Для пользователей без авторизации максимальное качество установлено в 480p[CR]- Переделан раздел "Поиск". Добавлено контекстное меню для управления разделом[CR]- Исправлены выявленные ошибки[CR][CR]v1.2.3 (2019-08-07)[CR]- Восстановлена работа дополнения на системах с OpenSSL версии 1.1.0 и выше[CR][CR]v1.2.2 (2019-07-25)[CR]- Исправлена ошибка доступа к ресурсу[CR][CR]v1.2.1 (2019-07-24)[CR]- Исправлено получение ссылок на источник[CR]- Исправлена проблема с авторизацией на устройствах ATV[CR]- Добавлена поддержка дополнения Widget Manager (пока не найдется решение лучше)[CR][CR]v1.2.0 (2019-05-30)[CR]- Добавлен вывод фильтров в списке контента. Можно отключить в настройках[CR]- Реализовано формирование имен для совместимости с "Add To Lib"[CR]- Поправлено определение типа контента для некоторых сериалов[CR]- Исправлено отображение отметки о просмотре на Kodi 18[CR]- Исправлены выявленные ошибки[CR][CR]</news>
<news>v1.2.8 (2020-01-08)[CR]- Исправлено отображение сезонов с одним эпизодом[CR][CR]v1.2.7 (2019-09-30)[CR]- Сертификаты вынесены в отдельное дополнение[CR][CR]v1.2.6 (2019-09-15)[CR]- Обновлены сертификаты[CR][CR]v1.2.5 (2019-08-20)[CR]- Обновлены сертификаты[CR]- Исправлена работа фильтров на Kodi 16 и старше[CR][CR]v1.2.4 (2019-08-11)[CR]- Для пользователей без авторизации максимальное качество установлено в 480p[CR]- Переделан раздел "Поиск". Добавлено контекстное меню для управления разделом[CR]- Исправлены выявленные ошибки[CR][CR]v1.2.3 (2019-08-07)[CR]- Восстановлена работа дополнения на системах с OpenSSL версии 1.1.0 и выше[CR][CR]v1.2.2 (2019-07-25)[CR]- Исправлена ошибка доступа к ресурсу[CR][CR]v1.2.1 (2019-07-24)[CR]- Исправлено получение ссылок на источник[CR]- Исправлена проблема с авторизацией на устройствах ATV[CR]- Добавлена поддержка дополнения Widget Manager (пока не найдется решение лучше)[CR][CR]v1.2.0 (2019-05-30)[CR]- Добавлен вывод фильтров в списке контента. Можно отключить в настройках[CR]- Реализовано формирование имен для совместимости с "Add To Lib"[CR]- Поправлено определение типа контента для некоторых сериалов[CR]- Исправлено отображение отметки о просмотре на Kodi 18[CR]- Исправлены выявленные ошибки[CR][CR]</news>
<assets>
<icon>icon.png</icon>
<fanart>fanart.jpg</fanart>
Expand Down
3 changes: 3 additions & 0 deletions plugin.video.filmix/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v1.2.8 (2020-01-08)
- Исправлено отображение сезонов с одним эпизодом

v1.2.7 (2019-09-30)
- Сертификаты вынесены в отдельное дополнение

Expand Down
71 changes: 42 additions & 29 deletions plugin.video.filmix/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,34 +559,19 @@ def _season_episodes_items(item, season=None, translation=None):
u_params['strm'] = 1

if season_translation is not None:
for episode_item in iteritems(season_translation):

episode = episode_item[0]

listitem['info']['video']['episode'] = int(episode)
listitem['info']['video']['sortepisode'] = int(episode)

url = plugin.url_for('play_video', e=episode, **u_params)
listitem['url'] = url
listitem['label'] = '{0} {1}'.format(_('Episode'), episode)

if use_atl_names:
atl_name_parts = []
if item.get('original_title', ''):
series_title = item['original_title']
else:
series_title = item['title']
atl_name_parts.append(series_title)

atl_name_parts.append('.s%02de%02d' % (int_season, int(episode)))

title = ''.join(atl_name_parts)
else:
title = listitem['label']

listitem['info']['video']['title'] = title

yield listitem
if isinstance(season_translation, list):
for episode, episode_info in enumerate(season_translation):

_add_episode_info(listitem, episode + 1, int_season, item, use_atl_names, u_params)

yield listitem
else:
for episode_item in iteritems(season_translation):

episode = episode_item[0]
_add_episode_info(listitem, episode, int_season, item, use_atl_names, u_params)

yield listitem


@plugin.route('/<catalog>/<content_name>/play', 'play_video_old')
Expand Down Expand Up @@ -772,7 +757,10 @@ def _get_episode_link(item, season, episode, translation=None):
if season_translation is None:
return None

episode_info = season_translation[episode]
if isinstance(season_translation, list):
episode_info = season_translation[int(episode)-1]
else:
episode_info = season_translation[episode]

api = Filmix()
url = api.decode_link(episode_info['link'])
Expand Down Expand Up @@ -1168,6 +1156,31 @@ def _is_movie(content_info):
return content_info['section'] in [0, 14] \
and len(content_info['player_links']['playlist']) == 0

def _add_episode_info(listitem, episode, int_season, item, use_atl_names, u_params):

listitem['info']['video']['episode'] = int(episode)
listitem['info']['video']['sortepisode'] = int(episode)

url = plugin.url_for('play_video', e=episode, **u_params)
listitem['url'] = url
listitem['label'] = '{0} {1}'.format(_('Episode'), episode)

if use_atl_names:
atl_name_parts = []
if item.get('original_title', ''):
series_title = item['original_title']
else:
series_title = item['title']
atl_name_parts.append(series_title)

atl_name_parts.append('.s%02de%02d' % (int_season, int(episode)))

title = ''.join(atl_name_parts)
else:
title = listitem['label']

listitem['info']['video']['title'] = title


if __name__ == '__main__':
plugin.run()
Binary file modified plugin.video.filmix/resources/media/clearlogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion script.module.filmix.cert/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="script.module.filmix.cert" version="0.9.1" name="Filmix certificates" provider-name="vl.maksime">
<addon id="script.module.filmix.cert" version="0.9.3" name="Filmix certificates" provider-name="vl.maksime">
<requires>
<import addon="xbmc.python" version="2.19.0"/>
</requires>
Expand Down
26 changes: 13 additions & 13 deletions script.module.filmix.cert/libs/filmixcert/certificate.pem
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
Bag Attributes
localKeyID: EB 72 30 18 2B ED 17 46 EC 6F 9C 6E 6E 3D A5 3B CF E0 22 5D
subject=C = SU, ST = Lipeck, L = Lipeck, O = FX-Production, OU = Android-app0.9.1, CN = Filmix, emailAddress = [email protected]
localKeyID: AD C6 AC CC 7A 47 6B 14 62 7E 28 F9 33 20 FF CB 22 EF 44 91
subject=C = SU, ST = Lipeck, L = Lipeck, O = FX-Production, OU = Android-app0.9.3, CN = Filmix, emailAddress = [email protected]

issuer=C = SU, ST = Lipeck, L = Lipeck, O = FX-Production, OU = Android, CN = etc, emailAddress = [email protected]

-----BEGIN CERTIFICATE-----
MIICizCCAfQCAQYwDQYJKoZIhvcNAQEEBQAwgYcxCzAJBgNVBAYTAlNVMQ8wDQYD
MIICizCCAfQCAQgwDQYJKoZIhvcNAQEEBQAwgYcxCzAJBgNVBAYTAlNVMQ8wDQYD
VQQIDAZMaXBlY2sxDzANBgNVBAcMBkxpcGVjazEWMBQGA1UECgwNRlgtUHJvZHVj
dGlvbjEQMA4GA1UECwwHQW5kcm9pZDEMMAoGA1UEAwwDZXRjMR4wHAYJKoZIhvcN
AQkBFg9tZWRpYUBmaWxtaXgubWUwHhcNMTkwOTEzMDYyNjMxWhcNMjQwOTExMDYy
NjMxWjCBkzELMAkGA1UEBhMCU1UxDzANBgN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1RrWOA0EZyKg5JCZ8nGZXQHomgSuVTy+RddEVtueDO55Lw65wB
QsIF9rUUUzh2RYgWYBbEcz/j7sa/bIJcIdvlc4bbMAz48tVEUxR6Z1akZb8507UV
jtKUlURCLxjA3C09mRaZYSIy8QdVdLosrndnHHy5xA==
-----END CERTIFICATE-----
Bag Attributes: <No Attributes>
subject=C = SU, ST = Lipeck, L = Lipeck, O = FX-Production, OU = Android, CN = etc, emailAddress = [email protected]
Expand Down
26 changes: 13 additions & 13 deletions script.module.filmix.cert/libs/filmixcert/plainkey.pem
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQCgbBCSjhvRIRj64eMIDEAQaOzdrbozaFvV+vXnKDeQgvcuJYWu
LFVt3UCGji23ZEYhJ024BnmfUBpgqCNrJ1FRlZiAHveQuVmrrFTA4Ms6FPBKd6Hg
MR0idwlZbGQtWfbdQ+ocSmVP37myi4TQ651wdS6dVKbWHdfAiolxECzOeQIDAQAB
AoGAOS+MkNG7tMb5oqVXSw0i4TamCTfewmiXJCY79lTtycQF3RtfFgGTyoAuekjA
nzlNjo/2Mn2MaXAilwYY6h+v6rbPAi490hI4TrIWNFIHsBi8Igt/5yAvwQs1vfP4
X21coOacpii9zZnisrKIakkVhOUZ+tt9h1PiIra4rPLoRgECQQDL+/vE/XWcgljF
mT0AOQnLhATpw3AnS/ZKqTOPlt+wfc7sy21wkC+v+6EjXZ/9f5MUhB+szD1K7O+2
q8BFK10hAkEAyVRb4Ybpj290RmK6r7homyq2bN00GOhS/3B2aB4zoPgIt1uOmOr+
e7MlwNWtQ8Qpv3FbQON8YipowujkrC2uWQJAftpxtAu7fF1DP38QhHb0NHAhbg5w
TL/cpoma2w0Ehwl2CaRoprvELDjb+NZcjJUtrnCMEjXhWBsI6BzfMSTKgQJADeEY
7HVGiLLgSzHnONH3tCq/pMWjH8x0XFO+dfMPEBvJTgqry/L3VEPHaIHSjgdp8V65
McH9Ay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