1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Get last line text [closed]

Discussão em 'Python' iniciado por Stack, Novembro 26, 2025.

  1. Stack

    Stack Membro Participativo

    I use the following lines in Python, but I have trouble cutting the last line in this text. The numbers are always different.

    Using the last line in the text, I can open a web browser with a Python script. For example:


    "Where can I watch content from Netflix?"
    ​

    With $INFO[Skin.String(snapname)] I have information for a patch file. The problem is that the numbers are always different, which is completely normal.

    I'm asking if anyone can help me find a solution for this problem.

    These numbers are always different, for example:

    70143836/season/70105286/episode/


    Here is the code I am using:

    import os
    import xbmc

    replacer = xbmc.getInfoLabel("$INFO\[Skin.String(snapname)\]")
    replacing = (replacer.replace('70143836/season/70105286/episode/', ' '))
    replaced = replacing.capitalize()
    xbmc.executebuiltin('Skin.SetString(toast,' + replaced + ')')

    Continue reading...

Compartilhe esta Página