Comment 1 for bug 2129714

Revision history for this message
zarakoff (zarakoff) wrote :

En complément du message précédent, j'ai refait un test (que je n'avais pas réussi à reproduire hier).
Même opération, même résultat mais message différent :
❯ qarte
08:34:38: INFO - core Set workspace
08:34:38: INFO - config Load config from: /home/jonckheere/.Qarte/user_config
08:34:38: INFO - core with video player: False
08:34:38: INFO - core Build main window
08:34:38: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20251015/
08:34:38: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20251016/
08:34:38: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20251017/
08:34:38: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20251018/
08:34:39: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20251019/
08:34:39: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20251020/
08:34:39: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20251021/
08:34:40: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20251022/
08:34:40: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20251023/
08:34:40: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20251024/
08:34:40: INFO - artetv Check thumbnails
08:34:40: INFO - artetv Thumbnails completed, 0 news items.
08:34:40: INFO - artetv Found 294 videos in 2.6844100952148438 sec.
08:34:40: INFO - artetv Get update ...
08:34:41: INFO - artetv arte tv list updated
08:34:41: INFO - artetv Clean thumbnail folder
08:34:41: INFO - arteconcert Get update ...
08:34:41: INFO - arteconcert Concert list updated
08:34:41: INFO - arteconcert show category: Métal
08:34:43: INFO - artetv Download item page: /fr/videos/118611-002-A/le-massif-central/
08:34:43: INFO - artetv Load page: https://www.arte.tv/fr/videos/118611-002-A/le-massif-central/
08:34:44: INFO - artetv Read error: Extra data: line 1 column 4695 (char 4694)
Traceback (most recent call last):
  File "/usr/share/qarte/artetv.py", line 277, in get_item_data
    data = json.loads(donn)
  File "/usr/lib/python3.13/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^
  File "/usr/lib/python3.13/json/decoder.py", line 348, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 4695 (char 4694)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/qarte/gui/mainui.py", line 427, in selection_changed
    self.core.artetv.edit_summary(item[0].item)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/share/qarte/artetv.py", line 214, in edit_summary
    self.get_item_data(item)
    ~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/share/qarte/artetv.py", line 282, in get_item_data
    with open("item.jsn", "w") as outf:
         ~~~~^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission non accordée: 'item.jsn'
Abandon

Si je fais un sudo qarte à partir d'un terminal, ça marche, mais le synopsis est vide (hormis le titre).
test fait sur d'anciens reportage.
Cordialement
Zarakoff