Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playdede url dinámica #1380

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Llavesuke
Copy link

Playdede seguía roto con la actualización 3.10.5 ya que utilizaba la url antigua www2.playdede.link.

Playdede.py
host = "https://www2.playdede.link/"

Lo que he hecho ha sido crear una función que utiliza una página oficial de Playdede donde van actualizando la url de la página con cada cambio de la propia url.

image

def get_dynamic_host():
    url = 'https://entrarplaydede.com/'
    logger.info('Downloading page: {}'.format(url))
    data = httptools.downloadpage(url, timeout=30)
    logger.info('Page downloaded successfully')
    soup = BeautifulSoup(data.data, 'html.parser')
    host_url = soup.find('h1').find('b').find('a').get('href')
    logger.info('Dynamic host URL: {}'.format(host_url))
    return host_url

Y luego he sustituido el valor de la variable host por lo que devuelve la función

host = get_dynamic_host()

Lo cual me ha permitido acceder a Playdede sin ningun problema e incluso visualizar contenido

Adjunto el log del correcto funcionamiento:
kodi.log

@SistemaRayoXP
Copy link
Contributor

Gracias por el aporte. Lo estaremos revisando y te diremos si hay alguna cosa que debas cambiar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants