here my plugin ....his wil not be going/doos not going :-( maybe someone can me help Place? sorry for my bad Inglis ....
------------------------------------------------------------
plugin_name = "adultcdmovies.us"
plugin_description = "ADULTCDMOVIES.US"
plugin_url = "
www.adultcdmovies.us"
plugin_language = _("Englisch")
plugin_author = "Bart De Clippeleir"
plugin_author_email = "<
clippi7@msn.com>"
plugin_version = "1.1"
class Plugin(movie.Movie):
url_to_use = "
http://www.adultcdmovies.us/"
url_type = "K"
def __init__(self, id):
self.encode='iso-8859-1'
self.elements = string.split(id, "_")
self.movie_id = self.elements[1]
if (self.elements[0] == "V"):
self.url_to_use = "
http://www.adultcdmovies.us/"
self.url_type = "V"
else:
self.url_to_use = "
http://www.adultcdmovies.us/"
self.url_type = "K"
self.url = self.url_to_use + "typ=film&NR=" + str(self.movie_id)
def picture(self):
if (gutils.trim(self.url, "typ=", "&") <> "film"):
self.url = self.url_to_use + "typ=film&NR=" + str(self.movie_id)
self.open_page(self.parent_window)
self.tmp_page = gutils.trim(self.page, "<!-- PRINT-CONTENT-START-->", "<!-- PRINT-CONTENT-ENDE-->")
if (self.url_type == "V"):
self.picture_url = "
http://www.adultcdmovies.us/pix/MBBILDER/VIDEO/" + gutils.trim(self.tmp_page,"IMG SRC=\"/pix/MBBILDER/VIDEO/", "\"")
else:
self.picture_url = gutils.trim(self.tmp_page,"IMG SRC=\"/pix/MBBILDER/KINOPLAK/", "\"")
if self.picture_url <> '':
self.picture_url = "
http://www.adultcdmovies.us/pix/MBBILDER/KINOPLAK/" + self.picture_url
else:
self.picture_url = "
http://www.adultcdmovies.us/pix/MBBILDER/KINO/" + gutils.trim(self.tmp_page,"IMG SRC=\"/pix/MBBILDER/KINO/", "\"")
def original_title(self):
self.original_title = gutils.trim(self.page,"span CLASS=\"standardsmall\"><br>(",")<")
def title(self):
if (self.url_type == "V"):
self.title = gutils.after(gutils.trim(self.page,"\"headline2\"><A HREF=\"/movies.php4?nr=", "</A>"), ">")
else:
self.title = gutils.after(gutils.trim(self.page,"\"headline2\"><A HREF=\"/Adultcdmovies.php4?nr=", "</A>"), ">")
def director(self):
if (gutils.trim(self.url, "typ=", "&") <> "credits"):
self.url = self.url_to_use + "typ=credits&NR=" + str(self.movie_id)
self.open_page(self.parent_window)
self.director = gutils.trim(self.page,"Regie","</a>")
self.director = gutils.after(self.director,"mitwirk.php4")
self.director = gutils.after(self.director,">")
def plot(self):
if (gutils.trim(self.url, "typ=", "&") <> "film"):
self.url = self.url_to_use + "typ=film&NR=" + str(self.movie_id)
self.open_page(self.parent_window)
self.tmp_page = gutils.trim(self.page, "<!-- PRINT-CONTENT-START-->", "<!-- PRINT-CONTENT-ENDE-->")
if (self.url_type == "V"):
self.plot = gutils.after(self.tmp_page,"IMG SRC=\"/pix/MBBILDER/VIDEO")
self.plot = gutils.trim(self.plot,"</TABLE>", "</TD>")
else:
self.plot = gutils.after(self.tmp_page,"IMG SRC=\"/pix/MBBILDER/KINOPLAK")
self.plot = gutils.trim(self.plot,"</TABLE>", "</TD>")
if self.plot == '':
self.plot = gutils.trim(self.tmp_page, "BORDER=\"0\" align=\"left\" ><TR><TD>", "</TD>")
def year(self):
self.year = gutils.trim(self.page,"class=\"standardsmall\"><br><b>DVD</b> - <b>","<BR>")
if self.year == "":
self.year = gutils.trim(self.page,"class=\"standardsmall\"><b>","<BR>")
self.year = gutils.trim(self.year,"<b>","</b>")
self.year = gutils.after(self.year," ")
def running_time(self):
self.running_time = gutils.trim(self.page,"Jahren</b> - <b>"," Min.")
if (self.running_time == ''):
self.running_time = gutils.trim(self.page,"Jahren</b></b> - <b>"," Min.")
if (self.running_time == ''):
self.running_time = gutils.trim(self.page,"</b><BR><b>"," Min.")
def genre(self):
self.genre = gutils.trim(self.page,"class=\"standardsmall\"><br><b>DVD</b> - <b>","</b>")
if self.genre == "":
self.genre = gutils.trim(self.page,"class=\"standardsmall\"><b>","</b>")
def with(self):
if (gutils.trim(self.url, "typ=", "&") <> "credits"):
self.url = self.url_to_use + "typ=credits&NR=" + str(self.movie_id)
self.open_page(self.parent_window)
self.with = gutils.trim(self.page,"</TD></TR><TR CLASS=\"dbtreffer", "\n")
self.with = gutils.after(self.with, "\">")
self.with = self.with.replace("<TR CLASS=\"dbtrefferlight\">", "\n")
self.with = self.with.replace("<TR CLASS=\"dbtrefferdark\">", "\n")
self.with = self.with.replace(" ", "--flip--")
self.with = gutils.clean(self.with)
self.elements1 = self.with.split("\n")
self.with = ''
for element1 in self.elements1:
self.elements2 = element1.split("--flip--")
if len(self.elements2) > 1:
self.with += self.elements2[1] + "--flip--" + self.elements2[0] + "\n"
else:
self.with = element1
self.with = self.with.replace("--flip--", _(" as "))
def classification(self):
self.classification = gutils.trim(self.page,"FSK: ","</b>")
def studio(self):
self.studio = gutils.trim(self.page,"Verleih: ", "</b>")
def site(self):
self.site = ""
def imdb(self):
self.imdb = self.url_to_use + "NR=" + self.movie_id;
def trailer(self):
self.trailer = ""
def country(self):
self.country = gutils.trim(self.page,"class=\"standardsmall\"><br><b>DVD</b> - <b>","<BR>")
if self.country == "":
self.country = gutils.trim(self.page,"class=\"standardsmall\"><b>","<BR>")
self.country = gutils.trim(self.country,"<b>","</b>")
self.country = gutils.before(self.country," ")
def rating(self):
self.rating = 0
class SearchPlugin(movie.SearchMovie):
def __init__(self):
self.original_url_search = "
http://www.adultcdmovies.us/e-pmsearch.aspx?SearchTerm="
self.translated_url_search = "
http://www.adultcdmovies.us/e-pmsearch.aspx?SearchTerm="
self.encode='iso-8859-1'
def search(self,parent_window):
self.open_search(parent_window)
self.page = gutils.trim(self.page,"align=center><B>Adultcdmovies 1", "<!-- PRINT-CONTENT-ENDE-->");
self.page = self.page.decode('iso-8859-1')
if (self.page<>''):
return self.page
self.url = "
http://www.adultcdmovies.us/e-pmsearch.aspx?SearchTerm="
self.open_search(parent_window)
self.page = gutils.trim(self.page,"align=center><B>Video/DVD 1", "<!-- PRINT-CONTENT-ENDE-->");
self.page = self.page.decode('iso-8859-1')
return self.page
def get_searches(self):
self.elements_tmp = string.split(self.page,"adultcdmovies.php4")
if (self.elements_tmp[0]<>self.page):
self.elements = string.split(self.page,"headline3\"><A HREF=\"/adultcdmovies.php4?nr=")
if (self.elements[0]<>''):
self.elements[0] = ''
for element in self.elements:
if (element <> ''):
self.ids.append("K_" + gutils.before(element,"&"))
self.titles.append(gutils.strip_tags(
gutils.trim(element,">","</A>") + " " +
gutils.trim(element, "<span CLASS=\"standardsmall\"><br>", "</SPAN>") + " (" +
string.replace(
gutils.trim(element, "<span class=\"standardsmall\"><b>", "</span>"), "<b>", ", ")
+ ")"
))
else:
self.elements_tmp2 = string.split(self.page, "videofilm.php4")
if (self.elements_tmp2[0]<>self.page):
self.elements = string.split(self.page,"headline3\"><A HREF=\"/videofilm.php4?nr=")
if (self.elements[0]<>''):
self.elements[0] = ''
for element in self.elements:
if (element <> ''):
self.ids.append("V_" + gutils.before(element,"&"))
self.titles.append(gutils.strip_tags(
gutils.trim(element,">","</A>") + " " +
gutils.trim(element, "<span CLASS=\"standardsmall\"><br>", "</SPAN>") + " (" +
string.replace(
gutils.trim(element, "<span class=\"standardsmall\"><b>", "</span>"), "<b>", ", ") + ")"
))
else:
pass