BoboTiG / ebook-reader-dict

Finally decent dictionaries based on the Wiktionary for your beloved eBook reader. Daily updates & 14 locales supported so far.
http://www.tiger-222.fr/?d=2020/04/17/22/14/21-un-dictionnaire-alternatif-et-complet-pour-votre-liseuse
MIT License
425 stars 24 forks source link

[PT] langs.py is empty #1955

Closed BoboTiG closed 9 months ago

BoboTiG commented 9 months ago

cb4c95831fbf6d869133c58f0f020bdf328e81e1 removed all langs.

BoboTiG commented 9 months ago

Maybe it would be wise to add a assert right before altering contents in lang.py, so that we prevent those kind of loss. It should be done on all other scripts IMO.

lasconic commented 9 months ago

The pages listing the languages in PT are gone. We need to find another source.

BoboTiG commented 9 months ago

The data update job had that failure tonight:

  File "/home/runner/work/ebook-reader-dict/ebook-reader-dict/scripts/pt-langs.py", line 38, in <module>
    next_page_url = process_page(next_page_url, languages)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/ebook-reader-dict/ebook-reader-dict/scripts/pt-langs.py", line 24, in process_page
    key = li.text.split(":")[1]
          ~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range