Legendaszone

legendaszone
diff -rupN script.xbmc.subtitles/resources/language/English/strings.xml script.xbmc.subtitles-gaco/resources/language/English/strings.xml
— script.xbmc.subtitles/resources/language/English/strings.xml 2012-09-04 17:04:30.000000000 +0200
+++ script.xbmc.subtitles-gaco/resources/language/English/strings.xml 2012-09-04 05:43:21.000000000 +0200
@@ -74,7 +74,8 @@
MicroDVD
MPl2
Use ‘Subs’ subfolder for storing subtitles

+ – napisy24.pl Username
+ – napisy24.pl Password

legendaszone legendaszone

Albanian
diff -rupN script.xbmc.subtitles/resources/language/Polish/strings.xml script.xbmc.subtitles-gaco/resources/language/Polish/strings.xml
— script.xbmc.subtitles/resources/language/Polish/strings.xml 2012-09-04 17:04:30.000000000 +0200
+++ script.xbmc.subtitles-gaco/resources/language/Polish/strings.xml 2012-09-04 05:43:21.000000000 +0200
@@ -66,7 +66,8 @@
– LegendasZone nazwa użytkownika
– LegendasZone hasło
– Wybierz rodzaj napisów:

legendaszone informational legendaszone
+ – napisy24.pl Nazwa
+ – napisy24.pl Hasło

albański
Pliki binarne script.xbmc.subtitles/resources/lib/gui.pyc i script.xbmc.subtitles-gaco/resources/lib/gui.pyc się różnią
Pliki binarne script.xbmc.subtitles/resources/lib/services/__init__.pyc i script.xbmc.subtitles-gaco/resources/lib/services/__init__.pyc się różnią
Pliki binarne script.xbmc.subtitles/resources/lib/services/Napisy24pl/__init__.pyc i script.xbmc.subtitles-gaco/resources/lib/services/Napisy24pl/__init__.pyc się różnią
diff -rupN script.xbmc.subtitles/resources/lib/services/Napisy24pl/service.py script.xbmc.subtitles-gaco/resources/lib/services/Napisy24pl/service.py
— script.xbmc.subtitles/resources/lib/services/Napisy24pl/service.py 2012-09-04 17:04:30.000000000 +0200
legendaszone informational legendaszone
+++ script.xbmc.subtitles-gaco/resources/lib/services/Napisy24pl/service.py 2012-09-04 17:27:36.974374001 +0200
@@ -8,6 +8,8 @@
import urllib2, re, string, xbmc, sys, os
from utilities import log, languageTranslate
from BeautifulSoup import BeautifulSoup
+from cookielib import CookieJar
+from urllib import urlencode

_ = sys.modules[ “__main__” ].__language__
__addon__ = sys.modules[ “__main__” ].__addon__
legendaszone legendaszone
@@ -20,9 +22,9 @@ elif __addon__.getSetting( “Napisy24_typ
subtitle_type = “mdvd”
elif __addon__.getSetting( “Napisy24_type” ) == “3”:
subtitle_type = “mpl2”

+
main_url = “http://napisy24.pl/search.php?str=”
-base_download_url = “http://napisy.me/download/”
+base_download_url = “http://napisy24.pl/download/”
down_url = “%s%s/” % (base_download_url, subtitle_type)
legendaszone informational legendaszone

def getallsubs(content, title, subtitles_list, file_original_path, stack, lang1, lang2, lang3):
@@ -159,16 +161,31 @@ def search_subtitles( file_original_path
return subtitles_list, “”, “” #standard output

def download_subtitles (subtitles_list, pos, zip_subs, tmp_sub_dir, sub_folder, session_id): #standard input
– import urllib
– f = urllib.urlopen(subtitles_list[pos][ “link” ])
– language = subtitles_list[pos][ “language_name” ]

legendaszone check more legendaszone
+ cj = CookieJar()
+ headers = {
+ ‘Accept’: ‘text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8’,
+ ‘Accept-Charset’: ‘UTF-8,*;q=0.5’,
+ ‘Accept-Encoding’: ‘gzip,deflate,sdch’,
+ ‘Accept-Language’: ‘pl,pl-PL;q=0.8,en-US;q=0.6,en;q=0.4’,
+ ‘Connection’: ‘keep-alive’,
+ ‘User-Agent’: ‘Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.83 Safari/537.1’,
+ ‘Referer’: ‘http://napisy24.pl/’
+ }
legendaszone best of legendaszone
+ values = { ‘form_logowanieMail’ : __addon__.getSetting( “n24user” ), ‘form_logowanieHaslo’ : __addon__.getSetting( “n24pass” ), ‘postAction’ : ‘sendLogowanie’ }
+ data = urlencode(values)
+ opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
+ request = urllib2.Request(“http://napisy24.pl/logowanie/”, data, headers)
+ response = opener.open(request)
+ request = urllib2.Request(subtitles_list[pos][ “link” ], “”, headers)
+ f = opener.open(request)
local_tmp_file = os.path.join(tmp_sub_dir, “zipsubs.zip”)
log( __name__ ,”Saving subtitles to ‘%s'” % (local_tmp_file))

legendaszone legendaszone
local_file = open(zip_subs, “w” + “b”)
local_file.write(f.read())
local_file.close()

– return True,language, “” #standard output
+ opener.open(“http://napisy24.pl/index.php?sendAction=Wyloguj”)
+
+ language = subtitles_list[pos][ “language_name” ]
+ return True, language, “” #standard output

legendaszone legendaszone
Pliki binarne script.xbmc.subtitles/resources/lib/services/Napisy24pl/service.pyc i script.xbmc.subtitles-gaco/resources/lib/services/Napisy24pl/service.pyc się różnią
Pliki binarne script.xbmc.subtitles/resources/lib/utilities.pyc i script.xbmc.subtitles-gaco/resources/lib/utilities.pyc się różnią
diff -rupN script.xbmc.subtitles/resources/settings.xml script.xbmc.subtitles-gaco/resources/settings.xml
— script.xbmc.subtitles/resources/settings.xml 2012-09-04 17:04:30.000000000 +0200
+++ script.xbmc.subtitles-gaco/resources/settings.xml 2012-09-04 05:43:21.000000000 +0200
@@ -29,6 +29,8 @@

+
legendaszone informational legendaszone
+

legendaszone

World Of Tanks Solo Mod

Walmart Kapolei