[webtoons] extract 'num_play' & 'num_stop' for background music (#8733 #8755)

* [webtoons] play_image and stop_image in background music
* [webtoons] add play_image and stop_image fields to test results
* [webtoons]: flake8
* [webtoons]: flake8 (2)

* update & improve
    - remove global 'images_urls'
    - move enumerate loop into images() extraction
* simplify 'play_image' etc extraction
* rename 'play_image' etc
    - num_play
    - num_stop
    - filename_play
    - filename_stop

---------

Co-authored-by: Mike Fährmann <mike_faehrmann@web.de>
This commit is contained in:
Oleguer Llopart
2025-12-27 09:09:10 +01:00
committed by GitHub
parent f2efccaadf
commit bea0e16970
2 changed files with 24 additions and 2 deletions

View File

@@ -160,6 +160,10 @@ __tests__ = (
"lang" : "en",
"language" : "English",
"num" : 0,
"num_play" : 17,
"num_stop" : 0,
"filename_play" : "1475724249934679214",
"filename_stop" : "",
"objectType" : "mp4a.40.2",
"originalFileSize": 0,
"playImageUrl" : "/20161006_271/1475724249957QlGUF_JPEG/1475724249934679214.jpg",