Autor Tópico: Para quem gosta de cinema  (Lida 32891 vezes)

frajuto

  • Visitante
Para quem gosta de cinema
« Resposta #15 Online: 28 de Novembro de 2005, 23:57 »
Vigilnt,

Modifique sua initialize.py conforme o exemplo abaixo:


ef initialize_gtkspell(self):
   global spell_support
   if self.posix and spell_support:
      if self.config.get('use_gtkspell', False) == 'False':
         if self.config.get('spell_notes', True) == 'False':
            self.obs_spell = gtkspell.Spell(self.e_obs)
            try:
               self.obs_spell.set_language(self.config.get('spell_lang', 'en'))
            except:
               self.obs_spell.set_language('en')
               gutils.info(self, _("Language not available. Defaulting to english."), self.w_preferences)
               self.config['spell_lang'] = 'en'
               self.config.save()
      if self.config.get('spell_plot', True)=='False':
         self.plot_spell = gtkspell.Spell(self.e_plot)        
         try:
            self.plot_spell.set_language(self.config.get('spell_lang', 'en'))
         except:
            self.plot_spell.set_language('en')      
   else:
      gdebug.debug("Spellchecker is not available")

ViGiLnT

  • Visitante
Para quem gosta de cinema
« Resposta #16 Online: 29 de Novembro de 2005, 09:56 »
Obrigadao!
Ja funciona agora :P

ViGiLnT

  • Visitante
Para quem gosta de cinema
« Resposta #17 Online: 29 de Novembro de 2005, 11:05 »
O programa está mesmo 5 estrelas!

Mas tenho mais uma questão...

Alguem consegue visualizar o ficheiro exportado como html ?

A mim dá-me este erro do firefox (os ficheiros criados são .xml):

XML Parsing Error: not well-formed
Location: file:///home/insomnia/Desktop/page_1.xml
Line Number 20, Column 20:      <seen>Sim</seen><@classification>
-------------------^

Offline LaSSarD

  • Usuário Ubuntu
  • *
  • Mensagens: 1.144
    • Ver perfil
Para quem gosta de cinema
« Resposta #18 Online: 30 de Novembro de 2005, 21:03 »
[off-topic]
n3to, acho que dava pra você criar uma locadora, ao menos ia valer o investimento nos DVDs (você deve ter gastado em torno de 25 mil para comprar todos os 939, considerando que você pagou em média 25 reais para cada). Provavelmente em 1 ano você não consiga olhar todos, então uma locadora poderia ainda te gerar um lucro :D
desculpem as mensagens não respondidas, mas eu tô afastado há mais de ano...
um dia eu volto ;)

Offline Alysson Neto

  • Administrador
  • Official Ubuntu Member
  • Usuário Ubuntu
  • *****
  • Mensagens: 606
    • Ver perfil
Para quem gosta de cinema
« Resposta #19 Online: 30 de Novembro de 2005, 21:36 »
Assisto todos varias vezes e muitos ganhei... e não alugo nem emprestos... todos devidamente catalogados e guardados em suas prateleiras sem ninguem poder tocar (nem mãe nem irmão). Minha coleção não é pra aulgar não
"Eu rejeito sua realidade e substituo pela minha" Adam Savage,

Offline luciano073

  • Usuário Ubuntu
  • *
  • Mensagens: 32
  • Expanda seus horizontes.
    • Ver perfil
Re: Para quem gosta de cinema
« Resposta #20 Online: 17 de Outubro de 2006, 21:49 »
Gostei, mas parece que ele não é compativel com o ubuntu6.06.
Alguém conseguiu instalá-lo no 6.06(dapper)?
Notebook | Linux Mint 9 | Gnome 64 bits

Offline Fagner Patricio

  • Usuário Ubuntu
  • *
  • Mensagens: 99
    • Ver perfil
    • http://fagnerpatricio.blogspot.com/
Re: Para quem gosta de cinema
« Resposta #21 Online: 18 de Outubro de 2006, 17:58 »
Gostei, mas parece que ele não é compativel com o ubuntu6.06.
Alguém conseguiu instalá-lo no 6.06(dapper)?

luciano073 aqui deu certo, a minha versão é a 6.06.1

Pessoal, eu tento pesquisar os filmes pela E-Pipoca e sempre da errado, como esse é o único site em português do brasil, alguém sabe como adicionar outros?

Valeu!!!
Viva o mundo Livre!!!

Offline luciano073

  • Usuário Ubuntu
  • *
  • Mensagens: 32
  • Expanda seus horizontes.
    • Ver perfil
Re: Para quem gosta de cinema
« Resposta #22 Online: 19 de Outubro de 2006, 11:04 »
Citar
Fagner...

Eu consegui instalar uma versão mais antiga do griffith, acho q é 0.6-1.
Eu tbm não consigo listar pela e-pipoca, acho q esse site nem existe mais.
Outra coisa, como eu faço pra atualizar meu ubuntu pro 6.06.1?
Notebook | Linux Mint 9 | Gnome 64 bits

Offline luciano073

  • Usuário Ubuntu
  • *
  • Mensagens: 32
  • Expanda seus horizontes.
    • Ver perfil
Re: Para quem gosta de cinema
« Resposta #23 Online: 19 de Outubro de 2006, 19:53 »
Gente, para o e-pipoca funcionar edite o arquivo "/usr/share/griffith/plugins/movie/PluginMovieE-Pipoca.py" e substitua todos os termos que fazem referência a url do e-pipoca pela url correta que é http://www.epipoca.uol.com.br. Comigo tá funcionando beleza. Esse programinha é fantástico!
Inté...
Notebook | Linux Mint 9 | Gnome 64 bits

Offline kenshin6x

  • Usuário Ubuntu
  • *
  • Mensagens: 55
    • Ver perfil
Re: Para quem gosta de cinema
« Resposta #24 Online: 20 de Outubro de 2006, 12:29 »
Gente, para o e-pipoca funcionar edite o arquivo "/usr/share/griffith/plugins/movie/PluginMovieE-Pipoca.py" e substitua todos os termos que fazem referência a url do e-pipoca pela url correta que é http://www.epipoca.uol.com.br. Comigo tá funcionando beleza. Esse programinha é fantástico!
Inté...
se vc faz todos os updates ja deve estar nessa versao

Offline Fagner Patricio

  • Usuário Ubuntu
  • *
  • Mensagens: 99
    • Ver perfil
    • http://fagnerpatricio.blogspot.com/
Re: Para quem gosta de cinema
« Resposta #25 Online: 20 de Outubro de 2006, 19:56 »
Gente, para o e-pipoca funcionar edite o arquivo "/usr/share/griffith/plugins/movie/PluginMovieE-Pipoca.py" e substitua todos os termos que fazem referência a url do e-pipoca pela url correta que é http://www.epipoca.uol.com.br. Comigo tá funcionando beleza. Esse programinha é fantástico!
Inté...

Aqui não deu certo luciano073 você pode colocar aqui o seu arquivo?

Citar
Fagner...

Eu consegui instalar uma versão mais antiga do griffith, acho q é 0.6-1.
Eu tbm não consigo listar pela e-pipoca, acho q esse site nem existe mais.
Outra coisa, como eu faço pra atualizar meu ubuntu pro 6.06.1?

Se você fez todos os updates já está nela.
Viva o mundo Livre!!!

Offline luciano073

  • Usuário Ubuntu
  • *
  • Mensagens: 32
  • Expanda seus horizontes.
    • Ver perfil
Re: Para quem gosta de cinema
« Resposta #26 Online: 24 de Outubro de 2006, 00:17 »
Meu arquivo "PluginMovieE-Pipoca.py":
Código: [Selecionar]
# -*- coding: UTF-8 -*-

__revision__ = '$Id: PluginMovieE-Pipoca.py 138 2006-01-02 15:56:56Z iznogoud $'

# Copyright (c) 2005 Vasco Nunes
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

# You may use and distribute this software under the terms of the
# GNU General Public License, version 2 or later

from gettext import gettext as _
import gutils, movie, string

plugin_name = "E-Pipoca"
plugin_description = "E-Pipoca Brasil"
plugin_url = "http://epipoca.uol.com.br"
plugin_language = _("Brazilian Portuguese")
plugin_author = "Vasco Nunes"
plugin_author_email="<vasco.m.nunes@gmail.com>"
plugin_version = "0.2"

class Plugin(movie.Movie):
    "A movie plugin object"
    def __init__(self, id):
        self.encode='iso-8859-1'
        self.movie_id = id
        self.url = "http://epipoca.uol.com.br/filmes_zoom.cfm?id=" \
            + str(self.movie_id)
       
    def picture(self):
        "Find the film's poster image"
        tmp_pic = gutils.trim(self.page, \
            "/images/filmes/capa_", \
            "\"")
        self.picture_url = \
            "http://epipoca.uol.com.br/images/filmes/capa_" + \
            tmp_pic
       
    def original_title(self):
        "Find the film's original title"
        self.original_title = string.capwords(gutils.trim(self.page, \
            "</font><br>(<i>", "</i>, "))
   
    def title(self):
        """Find the film's local title.
        Probably the original title translation"""
        self.title = gutils.trim(self.page, \
            "'votar');\">", "</b></font><br>(")
               
    def director(self):
        "Find the film's director"
        self.director = gutils.trim(self.page, "<b>Diretor(es)</b>:", \
            "</a>  <br>")
               
    def plot(self):
        "Find the film's plot"
        self.plot = gutils.trim(self.page, "<b>Sinopse</b><br>", \
            "</td></tr></table>")
       
    def year(self):
        "Find the film's year"
        self.year = gutils.trim(self.page, "</i>, ", \
            ")<br><img")
        self.year = gutils.after(self.year,", ")
       
    def running_time(self):
        "Find the film's running time"
        self.running_time = gutils.trim(self.page, "<br> <b>Dura", " min<br>")
        self.running_time = self.running_time[9:]       
       
    def genre(self):
        "Find the film's genre"
        self.genre = gutils.trim(self.page, "nero</b>: ", \
            "<br>")
       
    def with(self):
        "Find the actors. Try to make it comma separated."
        self.with = ""
        self.with = gutils.trim(self.page, "<b>Elenco:</b>", "<b>mais...</b>")
        self.with = gutils.strip_tags(self.with)
        self.with = self.with[:-2]
   
    def classification(self):
        "Find the film's classification"
        self.classification = ""
       
    def studio(self):
        "Find the studio"
        self.studio = gutils.trim(self.page, \
            "<b>Distribuidora</b>: ", "<br> <b>")
       
    def site(self):
        "Find the film's oficial site"
        self.site = gutils.trim(self.page, \
            "<A HREF='", \
            "' TARGET=_blank><IMG SRC='/imagens/bf_siteoficial.gif'")
       
    def imdb(self):
        "Find the film's imdb details page"
        self.imdb = gutils.trim(self.page, \
            "/imagens/bf_siteoficial.gif' WIDTH=89 HEIGHT=18 BORDER=0 ALT=''>", \
            "' TARGET=_blank><IMG SRC='/imagens/bf_imdb.gif'")
        self.imdb = gutils.after(self.imdb, "<A HREF='")
        self.imdb = string.replace(self.imdb, "'", "")
       
    def trailer(self):
        "Find the film's trailer page or location"
        self.trailer = gutils.trim(self.page, \
            "onclick=\"popup('/", \
            "', 600, 400,")
        if self.trailer:
            self.trailer = "http://epipoca.uol.com.br/" + self.trailer
       
    def country(self):
        "Find the film's country"
        self.country = gutils.trim(self.page, \
            "</i>, ", ", ")
       
    def rating(self):
        """Find the film's rating. From 0 to 10.
        Convert if needed when assigning."""
        tmp_rating = gutils.trim(self.page, "<font size=\"3\"><b> ", \
            "</b></font><br>")
        if tmp_rating <> "":
            tmp_rating = string.replace(tmp_rating,',','.')
            self.rating = str( float(string.strip(tmp_rating)) )
        else:
            self.rating = ""
           
class SearchPlugin(movie.SearchMovie):
    "A movie search object"
    def __init__(self):
        self.original_url_search = \
            "http://epipoca.uol.com.br/search/?Ordenado=Popular&busca="
        self.translated_url_search = \
            "http://epipoca.uol.com.br/search/?Ordenado=Popular&busca="
        self.encode='iso-8859-1'
       
    def search(self, parent_window):
        "Perform the web search"
        self.open_search(parent_window)
        self.sub_search()
        return self.page
       
    def sub_search(self):
        "Isolating just a portion (with the data we want) of the results"
        self.page = gutils.trim(self.page, \
            "<tr><td valign=\"top\" width=\"100%\">", "&nbsp;&nbsp;<b>Resu")
       
    def get_searches(self):
        "Try to find both id and film title for each search result"
        self.elements = string.split(self.page, "<td valign=\"bottom\">&nbsp;</td>")
        self.number_results = self.elements[-1]
       
        if (self.elements[0] != ''):
            for element in self.elements:
                self.ids.append(gutils.trim(element, "<b><a href=\"/filmes_zoom.cfm?id=", "\"><font size=\"2\""))
                self.titles.append(gutils.convert_entities \
                    (gutils.trim(element, "color=\"FF8000\">", "</font></a></b></a><br>") )) 
        else:
            self.number_results = 0
Notebook | Linux Mint 9 | Gnome 64 bits

Offline raphabonelli

  • Usuário Ubuntu
  • *
  • Mensagens: 87
    • Ver perfil
Re: Para quem gosta de cinema
« Resposta #27 Online: 24 de Outubro de 2006, 20:51 »
Infelizmente, aqui eu recebi uma série de erros de dependências. :(

Código: [Selecionar]
The following packages have unmet dependencies:
  griffith: Depends: python-central (>= 0.5) but it is not installable
            Depends: python-gtk2 (>= 2.8.6-1) but 2.8.6-0ubuntu1 is to be installed
            Depends: python-glade2 (>= 2.8.6-1) but 2.8.6-0ubuntu1 is to be installed
            Depends: python-sqlite (>= 1.0.1-5) but 1.0.1-4ubuntu1 is to be installed
            Depends: python-reportlab (>= 1.20debian-6) but 1.20debian-3ubuntu1 is to be installed
            Depends: python-imaging (>= 1.1.5-6) but 1.1.5-4ubuntu1 is to be installed
.......................
"My words but a whisper, your deafness a shout."

Offline Fagner Patricio

  • Usuário Ubuntu
  • *
  • Mensagens: 99
    • Ver perfil
    • http://fagnerpatricio.blogspot.com/
Re: Para quem gosta de cinema
« Resposta #28 Online: 24 de Outubro de 2006, 22:09 »
Meu arquivo "PluginMovieE-Pipoca.py":
Código: [Selecionar]
# -*- coding: UTF-8 -*-

__revision__ = '$Id: PluginMovieE-Pipoca.py 138 2006-01-02 15:56:56Z iznogoud $'

# Copyright (c) 2005 Vasco Nunes
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

# You may use and distribute this software under the terms of the
# GNU General Public License, version 2 or later

from gettext import gettext as _
import gutils, movie, string

plugin_name = "E-Pipoca"
plugin_description = "E-Pipoca Brasil"
plugin_url = "http://epipoca.uol.com.br"
plugin_language = _("Brazilian Portuguese")
plugin_author = "Vasco Nunes"
plugin_author_email="<vasco.m.nunes@gmail.com>"
plugin_version = "0.2"

class Plugin(movie.Movie):
    "A movie plugin object"
    def __init__(self, id):
        self.encode='iso-8859-1'
        self.movie_id = id
        self.url = "http://epipoca.uol.com.br/filmes_zoom.cfm?id=" \
            + str(self.movie_id)
       
    def picture(self):
        "Find the film's poster image"
        tmp_pic = gutils.trim(self.page, \
            "/images/filmes/capa_", \
            "\"")
        self.picture_url = \
            "http://epipoca.uol.com.br/images/filmes/capa_" + \
            tmp_pic
       
    def original_title(self):
        "Find the film's original title"
        self.original_title = string.capwords(gutils.trim(self.page, \
            "</font><br>(<i>", "</i>, "))
   
    def title(self):
        """Find the film's local title.
        Probably the original title translation"""
        self.title = gutils.trim(self.page, \
            "'votar');\">", "</b></font><br>(")
               
    def director(self):
        "Find the film's director"
        self.director = gutils.trim(self.page, "<b>Diretor(es)</b>:", \
            "</a>  <br>")
               
    def plot(self):
        "Find the film's plot"
        self.plot = gutils.trim(self.page, "<b>Sinopse</b><br>", \
            "</td></tr></table>")
       
    def year(self):
        "Find the film's year"
        self.year = gutils.trim(self.page, "</i>, ", \
            ")<br><img")
        self.year = gutils.after(self.year,", ")
       
    def running_time(self):
        "Find the film's running time"
        self.running_time = gutils.trim(self.page, "<br> <b>Dura", " min<br>")
        self.running_time = self.running_time[9:]       
       
    def genre(self):
        "Find the film's genre"
        self.genre = gutils.trim(self.page, "nero</b>: ", \
            "<br>")
       
    def with(self):
        "Find the actors. Try to make it comma separated."
        self.with = ""
        self.with = gutils.trim(self.page, "<b>Elenco:</b>", "<b>mais...</b>")
        self.with = gutils.strip_tags(self.with)
        self.with = self.with[:-2]
   
    def classification(self):
        "Find the film's classification"
        self.classification = ""
       
    def studio(self):
        "Find the studio"
        self.studio = gutils.trim(self.page, \
            "<b>Distribuidora</b>: ", "<br> <b>")
       
    def site(self):
        "Find the film's oficial site"
        self.site = gutils.trim(self.page, \
            "<A HREF='", \
            "' TARGET=_blank><IMG SRC='/imagens/bf_siteoficial.gif'")
       
    def imdb(self):
        "Find the film's imdb details page"
        self.imdb = gutils.trim(self.page, \
            "/imagens/bf_siteoficial.gif' WIDTH=89 HEIGHT=18 BORDER=0 ALT=''>", \
            "' TARGET=_blank><IMG SRC='/imagens/bf_imdb.gif'")
        self.imdb = gutils.after(self.imdb, "<A HREF='")
        self.imdb = string.replace(self.imdb, "'", "")
       
    def trailer(self):
        "Find the film's trailer page or location"
        self.trailer = gutils.trim(self.page, \
            "onclick=\"popup('/", \
            "', 600, 400,")
        if self.trailer:
            self.trailer = "http://epipoca.uol.com.br/" + self.trailer
       
    def country(self):
        "Find the film's country"
        self.country = gutils.trim(self.page, \
            "</i>, ", ", ")
       
    def rating(self):
        """Find the film's rating. From 0 to 10.
        Convert if needed when assigning."""
        tmp_rating = gutils.trim(self.page, "<font size=\"3\"><b> ", \
            "</b></font><br>")
        if tmp_rating <> "":
            tmp_rating = string.replace(tmp_rating,',','.')
            self.rating = str( float(string.strip(tmp_rating)) )
        else:
            self.rating = ""
           
class SearchPlugin(movie.SearchMovie):
    "A movie search object"
    def __init__(self):
        self.original_url_search = \
            "http://epipoca.uol.com.br/search/?Ordenado=Popular&busca="
        self.translated_url_search = \
            "http://epipoca.uol.com.br/search/?Ordenado=Popular&busca="
        self.encode='iso-8859-1'
       
    def search(self, parent_window):
        "Perform the web search"
        self.open_search(parent_window)
        self.sub_search()
        return self.page
       
    def sub_search(self):
        "Isolating just a portion (with the data we want) of the results"
        self.page = gutils.trim(self.page, \
            "<tr><td valign=\"top\" width=\"100%\">", "&nbsp;&nbsp;<b>Resu")
       
    def get_searches(self):
        "Try to find both id and film title for each search result"
        self.elements = string.split(self.page, "<td valign=\"bottom\">&nbsp;</td>")
        self.number_results = self.elements[-1]
       
        if (self.elements[0] != ''):
            for element in self.elements:
                self.ids.append(gutils.trim(element, "<b><a href=\"/filmes_zoom.cfm?id=", "\"><font size=\"2\""))
                self.titles.append(gutils.convert_entities \
                    (gutils.trim(element, "color=\"FF8000\">", "</font></a></b></a><br>") )) 
        else:
            self.number_results = 0

UUUUUUUUU, funcionou luciano073 valeu mesmo :):):):):):):)

Infelizmente, aqui eu recebi uma série de erros de dependências. :(

Código: [Selecionar]
The following packages have unmet dependencies:
  griffith: Depends: python-central (>= 0.5) but it is not installable
            Depends: python-gtk2 (>= 2.8.6-1) but 2.8.6-0ubuntu1 is to be installed
            Depends: python-glade2 (>= 2.8.6-1) but 2.8.6-0ubuntu1 is to be installed
            Depends: python-sqlite (>= 1.0.1-5) but 1.0.1-4ubuntu1 is to be installed
            Depends: python-reportlab (>= 1.20debian-6) but 1.20debian-3ubuntu1 is to be installed
            Depends: python-imaging (>= 1.1.5-6) but 1.1.5-4ubuntu1 is to be installed

rbonelli aqui deu certo 100%, sua source.list está alterada?
Viva o mundo Livre!!!

Offline raphabonelli

  • Usuário Ubuntu
  • *
  • Mensagens: 87
    • Ver perfil
Re: Para quem gosta de cinema
« Resposta #29 Online: 25 de Outubro de 2006, 08:22 »
Estava... mas recuperei o Backup da source.list original do Ubuntu e continuou dando estas mesmas dependências. :( - Que chato... eu tenho uma pá de DVDs para catalogar, e tenho usado o CGFilms... mas este me parece muito mais completo.
.......................
"My words but a whisper, your deafness a shout."