AVI filename

puti.ia's Avatar

puti.ia

05 Jun, 2011 10:05 AM via web

The XBMC subtitles plugin uses the media filename (and parent foldername) to search an available subtitle from some sources.

The problema is that your system shows a hash like filename and the real filename is lost :(.

You could use an url like path/YOURHASH/realfilename.avi instead of path/YOURHASH.avi

regards.

  1. 2 Posted by tunix on 05 Jun, 2011 10:18 AM

    tunix's Avatar

    Hello Sergio,

    Thank you for contacting us but I can't understand what really the problem
    is. Do you have a problem loading subtitles or you just want XBMC to show
    proper video information at info window?

    ---
    Quis custodiet ipsos custodes?

  2. 3 Posted by puti.ia on 06 Jun, 2011 03:59 PM

    puti.ia's Avatar

    Hola,

    Lo que me gustaría usar es el script de XBMC para buscar subtítulos. Como tú
    dices tengo que buscarlos a mano y es muy triste habiendo un script que lo
    hace sólo.

    Lo único que se necista es concatenar el nombre real del fichero a vuestra
    url.

    Es super fácil!

    :p

    Saludos.

    On Mon, Jun 6, 2011 at 5:51 PM, tunix <
    ***@tenderapp.com> wrote:

    >
    > ## REPLY ABOVE THIS LINE to add comments to this issue ##
    >
    > From: tunix (Support staff)
    > Subject: AVI filename
    >
    > İlk yazdığım cevapta söylemiştim zaten. Film ile aynı dizin içerisinde aynı
    > dosya adı olmalı; sonu *.sub ya da *.srt olabiliyor.
    >
    > ---
    > Quis custodiet ipsos custodes?
    >
    >
    >
    >
    > View this discussion at our support site online:
    > http://help.put.io/discussions/api-v1/49-avi-filename
    > Reply with #ignore to stop receiving notifications for this discussion.
    >
    >

  3. 4 Posted by Kris on 20 Jun, 2011 03:26 PM

    Kris's Avatar

    I think that the Sergio's point is that when you stream a file using put.io the resulting filename contains a hash instead of the original filename.

    E.g: I want to see myfilm.avi but the stream returns something like 678687ab67df78.avi

    That is very annoying if you want to download subtitles automatically based on filename.

  4. 5 Posted by tunix on 21 Jun, 2011 02:18 PM

    tunix's Avatar

    Hello Kris,

    Thanks for your contribution. I'll try to solve this issue asap. Meanwhile
    we're internally testing auto extraction with some other new stuff. I'll
    post an update about this ticket soon.

    ---
    Quis custodiet ipsos custodes?

  5. 6 Posted by puti.ia on 19 Oct, 2011 11:29 PM

    puti.ia's Avatar

    Tunix. I changed the putio.py file in your xbmc plugin and now it's running perfectly. Your only should change this method:

    def get_stream_url(self):
        """
        Takes  : Nothing
        Returns: A String
    
        Returns the stream url of files. If item is a folder, then download
        url will be returned.
    
        """
    
        result = self.update_info()
    
        if result:
            if self.is_dir == False:
                sturl = str(self.stream_url) + "/atk/+" \
                        + self.api.access_token + "/" + self.name
        sturl = sturl.replace(' ', '.')
                return sturl
            else:
                return self.get_download_url()
        else: raise PutioError("Error: Item not found.")
    

    Look that I only concat the file_name (without spaces). Now I can see the filename in my xbmc and use my subtitles plugin.

    Wooow!, I'm just starting a new level in my life!! ;)

  6. cenka closed this discussion on 03 Feb, 2012 03:08 PM.

Comments are currently closed for this discussion. You can start a new one.