Code Monkey home page Code Monkey logo

service.subtitles.planetdp's Introduction

PlanetDP Kodi Subtitle Addon

This is an unofficial Kodi Subtitle Addon to be able to easily download subtitles from planetdp.org

Changelog

0.2.0

  • Since divxplanet.com / altyazi.org is powered down, plugin now is adapted for PlanetDP.org which is it's successor
  • Added support to select the title when it's not possible to select the correct title
  • Added support for season packs

0.1.1

  • Set default encoding to utf8
  • Normalized file names before using them

0.1.0

  • Upgraded versions for modules used in the addon
  • Replaced usage of mechanize with requests module for simpler scraping
  • [Issue #4] Fixed an issue with unicode handling on file names
  • Year detail added to search for better filtering
  • Some code refactoring

0.0.12

  • [Issue #3] Better file extraction handling

0.0.11

  • Fixed searches for series that has the same name with a movie

0.0.10

  • Fixed searches for series with year value in their titles

0.0.9

  • Fixed another typo
  • Search from Google removed because of some restrictions

0.0.8

  • Fixed the typo made on previous version

0.0.7

  • Domain used for search replaced from divxplanet.com to altyazi.org

0.0.6

  • Downloaded file handling improved [emreuygur]
  • Movie year may differ from the original one [emreuygur]

0.0.5

  • filename encoding handling changed

0.0.4

  • fixed downloaded filename encoding
  • fixed subtitle description text encoding

0.0.3

  • added tags required for XBMC addon database
  • removed dummy translations
  • removed print statements

0.0.2

  • fixed empty year search on tv shows
  • fixed empty result crash
  • normalized saved filenames
  • cleaned up text in parantheses in tv show titles

0.0.1

  • move the service out of XBMC Subtitles

service.subtitles.planetdp's People

Contributors

amet avatar korayal avatar ronie avatar uyguremre avatar vendeka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

uyguremre htorun

service.subtitles.planetdp's Issues

'ascii' codec can't decode byte 0xc4 in position 1: ordinal not in range(128)

Şöyle bir hata alıyorum ama fikri olan var mıdır?

18:39:54 392.073792 T:1321276400 NOTICE: Divxplanet: searching subtitles for The Walking Dead 6 16
18:39:54 392.129303 T:1321276400 NOTICE: Divxplanet: Finding dizi: The Walking Dead ()
18:39:56 394.253265 T:1321276400 NOTICE: Divxplanet: got media url http://altyazi.org/sub/m/26515/The-Walking-Dead.html
18:40:15 412.839935 T:1321276400 NOTICE: Divxplanet: found 8 subtitles
18:40:27 425.258270 T:1321276400 NOTICE: Divxplanet: o yoldayiz /sub/s/393462/The-Walking-Dead.html
18:40:27 425.266632 T:1321276400 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeDecodeError'>
Error Contents: 'ascii' codec can't decode byte 0xc4 in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "/home/osmc/.kodi/addons/service.subtitles.divxplanet/service.py", line 360, in
subs = Download(params["link"],params["lang"], params["description"])
File "/home/osmc/.kodi/addons/service.subtitles.divxplanet/service.py", line 236, in Download
shutil.rmtree(temp)
File "/usr/lib/python2.7/shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "/usr/lib/python2.7/shutil.py", line 241, in rmtree
fullname = os.path.join(path, name)
File "/usr/lib/python2.7/posixpath.py", line 80, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 1: ordinal not in range(128)
-->End of Python script error report<--
18:40:27 425.528625 T:1329665008 ERROR: GetDirectory - Error getting plugin://service.subtitles.divxplanet/?action=download&link=/sub/s/393462/The-Walking-Dead.html&lang=tr&description=The Walking Dead S06E16 Last Day on Earth.tr

arama-indirme hatası

Raspberry pi (b+ model) üzerine openelec 5.0.8 kullanıyorum. Sizin 0.0.11 versiyonu ekli.
Sorunumun birkaç ayağı var. Birincisi, divxplanetten özellikle dizi ararken baya uzun süre bekliyor.(pc'den açarken sayfa normal yükleniyor, open subtitles eklentisinde de çok çok fazla altyazı bulmadıysa normal sürede arama sonuçları ekrana geliyor)
İkincisi, indirme sorunu yaşadım. Logları karıştırırken divxplanet'in eski adresinden indirmeye çalıştığını farkettim, bu adresi de xml dosyasından aldığını gördüm. Onu değiştirince indirdi fakat bu sefer de ilkinde dosyayı dizinin olduğu yere kopyalamadı, diğer denemelerde de rar dosyasını açarken sorun yaşadı.
Logları aşağıya kopyalıyorum:


İlk durumla ilgili loglar (8 dakikada bulmuş)
22:27:17 T:1185760320 NOTICE: Divxplanet: searching subtitles for The Big Bang Theory 9 8
22:27:17 T:1185760320 NOTICE: Divxplanet: Finding dizi: The Big Bang Theory ()
22:27:58 T:1185760320 NOTICE: Divxplanet: got media url http://altyazi.org/sub/m/13274/The-Big-Bang-Theory.html
22:35:52 T:1185760320 NOTICE: Divxplanet: found 3 subtitles


ikinci durum için loglar:
21:31:32 T:1287648320 NOTICE: Divxplanet: searching subtitles for The Big Bang Theory 9 8
21:31:32 T:1287648320 NOTICE: Divxplanet: Finding dizi: The Big Bang Theory ()
21:32:00 T:1287648320 NOTICE: Divxplanet: got media url http://altyazi.org/sub/m/13274/The-Big-Bang-Theory.html
21:36:48 T:1287648320 NOTICE: Divxplanet: found 3 subtitles
21:36:57 T:1287648320 NOTICE: Thread LanguageInvoker start, auto delete: false
21:36:59 T:1287648320 NOTICE: -->Python Interpreter Initialized<--
21:37:08 T:1152205888 ERROR: GetDirectory - Error getting plugin://service.subtitles.divxplanet/?action=download&link=/sub/s/377355/The-Big-Bang-Theory.html&lang=tr&description=The Big Bang Theory S09E08 The Mystery Date Observation.tr
21:37:11 T:1287648320 NOTICE: Thread LanguageInvoker start, auto delete: false


addon.xml dosyasında <addon id="service.subtitles.altyazi.org" değişikliği yaptıktan sonra bir film denemesi yaptım, başarılı bir şekilde indirdi. ilgili loglar:
22:24:15 T:1177371712 NOTICE: Divxplanet: searching subtitles for Masaan 2015
22:24:15 T:1177371712 NOTICE: Divxplanet: Finding film: Masaan (2015)
22:24:56 T:1177371712 NOTICE: Divxplanet: got media url http://altyazi.org/sub/m/52229/Masaan.html
22:25:46 T:1177371712 NOTICE: Divxplanet: found a subtitle with description: Masaan.2015.2CD.DvDRip.x264.AC3.5.1.ESub[DDR]
22:25:47 T:1177371712 NOTICE: Divxplanet: found a subtitle with description: Masaan (2015) 1080p BDRip - x264 DTS HDMA - DUS
22:25:47 T:1177371712 NOTICE: Divxplanet: found 2 subtitles
22:26:00 T:1345143872 NOTICE: Thread LanguageInvoker start, auto delete: false
22:26:03 T:1345143872 NOTICE: -->Python Interpreter Initialized<--
22:26:16 T:1345143872 NOTICE: Divxplanet: o yoldayiz /sub/s/375521/Masaan.html
22:26:27 T:1345143872 NOTICE: Divxplanet: Fetching subtitles using url http://altyazi.org//sub/s/375521/Masaan.html
22:26:27 T:1345143872 NOTICE: Divxplanet: Saving subtitles to '/storage/.kodi/userdata/addon_data/service.subtitles.divxplanet/temp/(375521)Masaan_23.976fps_1CD_English_SubRip_DiVXPlanet.zip'
22:26:31 T:1345143872 NOTICE: Divxplanet: Unpacked files in '/storage/.kodi/userdata/addon_data/service.subtitles.divxplanet/temp'
22:26:31 T:1345143872 NOTICE: Divxplanet: Unpacked subtitles file 'Masaan.2015.2CD.DvDRip.x264.AC3.5.1.ESub[DDR].srt'
22:26:31 T:1345143872 NOTICE: Divxplanet: Subtitles saved to '/storage/.kodi/userdata/addon_data/service.subtitles.divxplanet/temp/(375521)Masaan_23.976fps_1CD_English_SubRip_DiVXPlanet.zip'
22:26:31 T:1120924736 WARNING: SMBFile::OpenForWrite() called with overwriting enabled! - smb://pi:xxxxxxx@xxxxxx/Paylasim/torrent/Masaan%20(2015)%20Hindi%20720p%20DVDRip%20x264%20AAC%20E-Sub%20-%3dBy%20%40%20Kamalesh%3d-/Masaan%20(2015)%20Hindi%20720p%20DVDRip%20x264%20AAC%20E-Sub%20-%3dBy%20%40%20Kamalesh%3d-.en.srt


Aynı denemeyi big bang theory için yapınca ilk seferinde altyazıyı indirmiş fakat video dosyasının olduğu yere yazmamış görünüyor. Diğerlerinde de rar dosyasını açamadığı görülüyor. Tempteki srt dosyasını silip denesem olurmuş.

22:27:17 T:1185760320 NOTICE: Divxplanet: searching subtitles for The Big Bang Theory 9 8
22:27:17 T:1185760320 NOTICE: Divxplanet: Finding dizi: The Big Bang Theory ()
22:27:58 T:1185760320 NOTICE: Divxplanet: got media url http://altyazi.org/sub/m/13274/The-Big-Bang-Theory.html
22:35:52 T:1185760320 NOTICE: Divxplanet: found 3 subtitles
22:40:42 T:1101874240 NOTICE: Thread JobWorker start, auto delete: true
22:40:42 T:1120924736 NOTICE: Thread LanguageInvoker start, auto delete: false
22:40:43 T:1120924736 NOTICE: -->Python Interpreter Initialized<--
22:40:52 T:1120924736 NOTICE: Divxplanet: o yoldayiz /sub/s/377355/The-Big-Bang-Theory.html
22:41:33 T:1120924736 NOTICE: Divxplanet: Fetching subtitles using url http://altyazi.org//sub/s/377355/The-Big-Bang-Theory.html
22:41:33 T:1120924736 NOTICE: Divxplanet: Saving subtitles to '/storage/.kodi/userdata/addon_data/service.subtitles.divxplanet/temp/(377355)The_Big_Bang_Theory_23.976fps_1CD_Turkce_SubRip_DiVXPlanet.rar'
22:41:36 T:1120924736 NOTICE: Divxplanet: Unpacked files in '/storage/.kodi/userdata/addon_data/service.subtitles.divxplanet/temp'
22:41:36 T:1120924736 NOTICE: Divxplanet: Subtitles saved to '/storage/.kodi/userdata/addon_data/service.subtitles.divxplanet/temp/(377355)The_Big_Bang_Theory_23.976fps_1CD_Turkce_SubRip_DiVXPlanet.rar'
22:41:46 T:1223685184 NOTICE: Thread LanguageInvoker start, auto delete: false
22:41:48 T:1223685184 NOTICE: -->Python Interpreter Initialized<--
22:41:57 T:1223685184 NOTICE: Divxplanet: o yoldayiz /sub/s/377355/The-Big-Bang-Theory.html
22:42:38 T:1223685184 NOTICE: Divxplanet: Fetching subtitles using url http://altyazi.org//sub/s/377355/The-Big-Bang-Theory.html
22:42:38 T:1223685184 NOTICE: Divxplanet: Saving subtitles to '/storage/.kodi/userdata/addon_data/service.subtitles.divxplanet/temp/(377355)The_Big_Bang_Theory_23.976fps_1CD_Turkce_SubRip_DiVXPlanet.rar'
22:43:00 T:1223685184 NOTICE: Divxplanet: Failed to unpack subtitles in '/storage/.kodi/userdata/addon_data/service.subtitles.divxplanet/temp'
22:43:00 T:1223685184 NOTICE: Divxplanet: Subtitles saved to '/storage/.kodi/userdata/addon_data/service.subtitles.divxplanet/temp/(377355)The_Big_Bang_Theory_23.976fps_1CD_Turkce_SubRip_DiVXPlanet.rar'

Kodi veritabanindaki surum guncel degil

Oncelikle bu eklentiyi yeniden guncelledigin icin cok tesekkurler.

Kodi'nin resmi add-on veritabanindaki surum 0.1.1, en son 2014'te guncellenmis: https://kodi.tv/addon/subtitles/divxplanet

Kodi'nin veritabaninda 'planetdp' ile ilgili bir baska eklenti yok. Acaba bu eklentinin en son surumunu yeniden yukleyebilir misin? Eklentinin sahibi olarak hala sen gorundugun icin sanirim buyuk bir problemle karsilasmazsin yukleme yaparken.

Tesekkurler.

EXCEPTION Thrown (PythonToCppException)

Uzun bir suredir maalesef bu add-on bende calismiyor. Asagidakine benzer bir hata aliyorum.

17:48:49 T:1824 NOTICE: [SEARCH !TVSHOW] Divxplanet: searching subtitles for Trolls 2016
17:48:49 T:1824 NOTICE: getting media url
17:48:51 T:1824 NOTICE: Getting uri: http://www.altyazi.org/index.php?page=arama&arama=Trolls+(2016)
17:49:21 T:1824 NOTICE: Got uri [522]: http://www.altyazi.org/index.php?page=arama&arama=Trolls+(2016)
17:49:21 T:1824 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ValueError'>
Error Contents: No valid results
Traceback (most recent call last):
File "C:\Users\ck\AppData\Roaming\Kodi\addons\service.subtitles.divxplanet\service.py", line 337, in
search(item)
File "C:\Users\ck\AppData\Roaming\Kodi\addons\service.subtitles.divxplanet\service.py", line 174, in search
tvurl = get_media_url(["film", title, year])
File "C:\Users\ck\AppData\Roaming\Kodi\addons\service.subtitles.divxplanet\service.py", line 95, in get_media_url
raise ValueError('No valid results')
ValueError: No valid results
-->End of Python script error report<--
17:49:21 T:5892 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://service.subtitles.divxplanet/?action=search&languages=English&preferredlanguage=English

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.