gridplayer 0.4.3__tar.gz → 0.5.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gridplayer-0.4.3 → gridplayer-0.5.1}/CHANGELOG.md +63 -1
- {gridplayer-0.4.3 → gridplayer-0.5.1}/PKG-INFO +79 -17
- {gridplayer-0.4.3 → gridplayer-0.5.1}/README.md +72 -11
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/dialogs/about.py +15 -24
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/dialogs/settings.py +49 -17
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/dialogs/settings_dialog_ui.py +52 -2
- gridplayer-0.5.1/gridplayer/models/recent_list.py +63 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/models/stream.py +40 -7
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/models/video.py +28 -48
- gridplayer-0.5.1/gridplayer/models/video_uri.py +38 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/multiprocess/instance_process.py +4 -1
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/multiprocess/process_manager.py +14 -9
- {gridplayer-0.4.3/gridplayer/player/managers → gridplayer-0.5.1/gridplayer/params}/actions.py +414 -163
- gridplayer-0.5.1/gridplayer/params/languages.py +144 -0
- gridplayer-0.5.1/gridplayer/params/menu.py +366 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/params/static.py +24 -10
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/manager.py +11 -0
- gridplayer-0.5.1/gridplayer/player/managers/actions.py +173 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/active_block.py +100 -14
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/add_videos.py +27 -3
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/dialogs.py +4 -1
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/drag_n_drop.py +7 -7
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/grid.py +1 -0
- gridplayer-0.5.1/gridplayer/player/managers/menu.py +99 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/playlist.py +10 -4
- gridplayer-0.5.1/gridplayer/player/managers/recent_list.py +153 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/settings.py +3 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/single_mode.py +2 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/video_blocks.py +34 -4
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/window_state.py +6 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/player.py +12 -1
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/resources_bin.py +111845 -89035
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/settings.py +69 -14
- gridplayer-0.5.1/gridplayer/utils/command_helpers.py +20 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/files.py +4 -8
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/libvlc_fixer.py +3 -0
- gridplayer-0.5.1/gridplayer/utils/libvlc_options_parser.py +27 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/log_config.py +5 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/misc.py +2 -2
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/qt.py +9 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/url_resolve/resolver_base.py +1 -1
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/url_resolve/resolver_streamlink.py +60 -11
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/url_resolve/resolver_yt_dlp.py +19 -11
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/url_resolve/url_resolve.py +1 -1
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/version.py +2 -2
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/vlc_player/instance.py +5 -12
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/vlc_player/player_base.py +111 -78
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/vlc_player/player_base_threaded.py +0 -3
- gridplayer-0.5.1/gridplayer/vlc_player/player_tracks_manager.py +152 -0
- gridplayer-0.5.1/gridplayer/vlc_player/static.py +154 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/vlc_player/video_driver_base.py +15 -7
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/vlc_player/video_driver_base_threaded.py +9 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/custom_menu.py +6 -3
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/language_list.py +21 -11
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/resolver_patterns_list.py +1 -1
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/video_block.py +148 -34
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/video_frame_dummy.py +25 -6
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/video_frame_vlc_base.py +60 -20
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/video_frame_vlc_hw.py +8 -5
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/video_frame_vlc_hw_sp.py +26 -14
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/video_frame_vlc_sw.py +12 -6
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/video_overlay.py +4 -2
- {gridplayer-0.4.3 → gridplayer-0.5.1}/pyproject.toml +14 -7
- gridplayer-0.4.3/gridplayer/player/managers/menu.py +0 -373
- gridplayer-0.4.3/gridplayer/vlc_player/static.py +0 -57
- gridplayer-0.4.3/setup.py +0 -54
- {gridplayer-0.4.3 → gridplayer-0.5.1}/LICENSE +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/__init__.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/__main__.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/dialogs/__init__.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/dialogs/about_dialog_ui.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/dialogs/add_urls.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/dialogs/exception.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/dialogs/exception_dialog_ui.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/dialogs/input_dialog.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/dialogs/messagebox.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/dialogs/rename_dialog.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/exceptions.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/main/__init__.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/main/init_app.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/main/init_app_env.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/main/init_icons.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/main/init_log.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/main/init_resources.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/main/init_translator.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/main/run.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/models/__init__.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/models/grid_state.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/models/playlist.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/models/resolver_patterns.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/multiprocess/__init__.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/multiprocess/command_loop.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/multiprocess/safe_shared_memory.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/params/__init__.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/params/env.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/params/extensions.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/__init__.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/__init__.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/base.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/instance_listener.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/log.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/macos_fileopen.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/mouse_hide.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/screensaver.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/snapshots.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/stream_proxy.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/player/managers/video_driver.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/__init__.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/app_dir.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/aspect_calc.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/darkmode.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/excepthook.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/keepawake.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/keepawake_macos.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/libvlc.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/log.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/next_file.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/single_instance.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/stream_proxy/__init__.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/stream_proxy/m3u8.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/stream_proxy/server.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/stream_proxy/session.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/stream_proxy/stream_proxy.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/stream_proxy/wrappers.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/time_txt.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/url_resolve/__init__.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/url_resolve/static.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/utils/url_resolve/stream_detect.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/vlc_player/__init__.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/vlc_player/image_decoder.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/vlc_player/libvlc.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/vlc_player/player_event_manager.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/vlc_player/player_event_waiter.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/__init__.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/video_overlay_buttons.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/video_overlay_elements.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/video_overlay_icons.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/video_status.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/video_status_info.py +0 -0
- {gridplayer-0.4.3 → gridplayer-0.5.1}/gridplayer/widgets/video_status_loading.py +0 -0
|
@@ -6,6 +6,66 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.5.1] - 2023-06-05
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
* Option to transform video (rotate, mirror, transpose) ([236b989](https://github.com/vzhd1701/gridplayer/commit/236b9895b9fc9b5ba7b9ccda503271466a108103))
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
* Update translations ([042e3b7](https://github.com/vzhd1701/gridplayer/commit/042e3b7b8716ffd1a0c6b851c089af49700a38fc))
|
|
18
|
+
* Prevent video freeze on MacOS ([fe37336](https://github.com/vzhd1701/gridplayer/commit/fe3733606e78e30c1245e7126cda842cc847d94f))
|
|
19
|
+
* Access URL directly if yt-dlp reports a direct link ([6aa0a13](https://github.com/vzhd1701/gridplayer/commit/6aa0a1397db68311cf3295e53ddc83d4a996b4d6))
|
|
20
|
+
* Add support for relative paths ([884b687](https://github.com/vzhd1701/gridplayer/commit/884b687d4b0a85bcef6eb63bae6865c4e24d7dd8))
|
|
21
|
+
* Filter video streams only if preferred quality is configured ([f9a98bf](https://github.com/vzhd1701/gridplayer/commit/f9a98bf9f712a2d80a12c6d03c5aef84127002dc))
|
|
22
|
+
|
|
23
|
+
## [0.5.0] - 2023-05-18
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- Arabic translation ([7cf8b06](https://github.com/vzhd1701/gridplayer/commit/7cf8b06a240c576c30d5cc4bb2f7f29f5fa1ef02))
|
|
28
|
+
- Chinese Simplified translation ([681c403](https://github.com/vzhd1701/gridplayer/commit/681c403235eaad95d3b5c43b6a141f171caabb80))
|
|
29
|
+
- Dutch translation ([d27d47a](https://github.com/vzhd1701/gridplayer/commit/d27d47a45aaabfa1c79183609cae775406923b67))
|
|
30
|
+
- French translation ([aa5d48a](https://github.com/vzhd1701/gridplayer/commit/aa5d48af693af359d1673ad86b4293b9d79de387))
|
|
31
|
+
- German translation ([11f9136](https://github.com/vzhd1701/gridplayer/commit/11f913651c97a4451aa1b1cc6500102483f116eb))
|
|
32
|
+
- Italian translation ([b16b0b3](https://github.com/vzhd1701/gridplayer/commit/b16b0b34f28d1669cc3b47806c5a8fbd64ed739e))
|
|
33
|
+
- Japanese translation ([79876de](https://github.com/vzhd1701/gridplayer/commit/79876defe67bd3d7c4cf8114c41cfd4218293b59))
|
|
34
|
+
- Korean translation ([61423ea](https://github.com/vzhd1701/gridplayer/commit/61423ea46584352bf9216e049712979ba7afaa60))
|
|
35
|
+
- Polish translation ([06d2fc3](https://github.com/vzhd1701/gridplayer/commit/06d2fc353ba0b70043da10875394ef89d79dda21))
|
|
36
|
+
- Portuguese, Brazilian translation ([b16d352](https://github.com/vzhd1701/gridplayer/commit/b16d3525f937c4fca5a515d8eb1b4a18af117f3e))
|
|
37
|
+
- Spanish translation ([3b76290](https://github.com/vzhd1701/gridplayer/commit/3b762903401be985d8e6ef7c7d07638687002918))
|
|
38
|
+
- Option to paste files/links from clipboard ([f300c22](https://github.com/vzhd1701/gridplayer/commit/f300c228f0f992537c5faeeac164137f7376d702))
|
|
39
|
+
- Option to select audio mode (stereo, mono, etc) ([ef9be61](https://github.com/vzhd1701/gridplayer/commit/ef9be61c0eed96820334c7677c3509d4fe6bad0b))
|
|
40
|
+
- Option to select audio only stream when available ([b77e409](https://github.com/vzhd1701/gridplayer/commit/b77e4093244da2d8a2124292ae8d3f9504fb1e3b))
|
|
41
|
+
- Option to select audio/video track ([009917f](https://github.com/vzhd1701/gridplayer/commit/009917f4fe3e00b453f68dc926cdac317383a13c))
|
|
42
|
+
- Stay on top setting ([1227bab](https://github.com/vzhd1701/gridplayer/commit/1227bab6369adf8e9a83069d508bee6ae7000cb7))
|
|
43
|
+
- Recent list support for videos/playlists ([48acba1](https://github.com/vzhd1701/gridplayer/commit/48acba1db0ac5fb73eee528106682b5756daf9f3))
|
|
44
|
+
- Single mode switch in context menu ([faf8d5f](https://github.com/vzhd1701/gridplayer/commit/faf8d5f22e5741ce9fd97c222ec786c91ab3a1d0))
|
|
45
|
+
- Volume controls in context menu ([f749821](https://github.com/vzhd1701/gridplayer/commit/f7498218b5a64bdfe4ad64bf60d78fce8ca2b7bc))
|
|
46
|
+
|
|
47
|
+
### Fixed
|
|
48
|
+
|
|
49
|
+
- Update yt-dlp and Streamlink ([635aaf5](https://github.com/vzhd1701/gridplayer/commit/635aaf5a26e43a061c08108cd42dbe14bf756e02))
|
|
50
|
+
- Terminate child processes on app exit (Windows) ([5045337](https://github.com/vzhd1701/gridplayer/commit/50453373d425df0f5b903af7f11a8b4100827c6e))
|
|
51
|
+
- Reorganize context menu ([3070fd5](https://github.com/vzhd1701/gridplayer/commit/3070fd53b9e16cf5ec0e70b92aad9b08b2934c8c))
|
|
52
|
+
- Avoid moving overlay during paintEvent to prevent app crash ([10b141b](https://github.com/vzhd1701/gridplayer/commit/10b141b0f75277eaa53b35c637fc3af2e3465772))
|
|
53
|
+
- Avoid rare exception on app close ([1968173](https://github.com/vzhd1701/gridplayer/commit/19681731e50544a84be46721a3f431a25cb76dc9))
|
|
54
|
+
- Avoid wide text cramming on main screen ([f4b63be](https://github.com/vzhd1701/gridplayer/commit/f4b63befc8488c1fd1845cceb257f3f0e068b5a9))
|
|
55
|
+
- Disable video controls if no video track ([c439ce2](https://github.com/vzhd1701/gridplayer/commit/c439ce2529b4b4282a0ed25aa95ccd5fdcbf1f82))
|
|
56
|
+
- Crash on missing VLC ([d76b089](https://github.com/vzhd1701/gridplayer/commit/d76b08944003322d7abe70181f8e5d090a4488d9)), closes [#112](https://github.com/vzhd1701/gridplayer/issues/112)
|
|
57
|
+
- Crash when loop start/end unset in playlist ([c2b7b34](https://github.com/vzhd1701/gridplayer/commit/c2b7b340dcfcd52ac34a3d2d10b8f77b19c18663))
|
|
58
|
+
- Crash when opening a playlist ([d1bb3ae](https://github.com/vzhd1701/gridplayer/commit/d1bb3ae95056710bc5a327bb544171e1e80c5533))
|
|
59
|
+
- Icon glitches ([cab0eed](https://github.com/vzhd1701/gridplayer/commit/cab0eed6b3ed9fa488538b3207b3127dcce0ec6f))
|
|
60
|
+
- Hide FPS from track description if it's empty ([ca3dd61](https://github.com/vzhd1701/gridplayer/commit/ca3dd6150c9618e9f42abe4566b125dd7ac1af32))
|
|
61
|
+
- Hide volume button if no audio tracks ([f4ce4cd](https://github.com/vzhd1701/gridplayer/commit/f4ce4cd20d885f318d4cc5fcdcbfc3e711654823))
|
|
62
|
+
- Kill process silently on KeyboardInterrupt ([92ccfd7](https://github.com/vzhd1701/gridplayer/commit/92ccfd712ecbbb714d9193f2624841945dcb4ad6))
|
|
63
|
+
- Loop videos via VLC playlist to avoid abrupt video stop ([7247d57](https://github.com/vzhd1701/gridplayer/commit/7247d5738b43b26bf3ebd4960d8d47d2d6bbc284))
|
|
64
|
+
- Make context menu scrollable if it exceeds screen size ([fa0f741](https://github.com/vzhd1701/gridplayer/commit/fa0f7414bf208ca75c33a9f4c631646b0cbc5b64))
|
|
65
|
+
- Prevent missing overlay in SW mode ([28378f7](https://github.com/vzhd1701/gridplayer/commit/28378f7f668436e4b05cf5d453e8bc3dd5abf0d4))
|
|
66
|
+
- Update icon for [ALL] ([c80c759](https://github.com/vzhd1701/gridplayer/commit/c80c759bc60052b408c30d2ebff661f208a4ec63))
|
|
67
|
+
- Use different font color for disabled context menu entries ([1ca5863](https://github.com/vzhd1701/gridplayer/commit/1ca58638604af1b7bb904bc4ba08506a03023699))
|
|
68
|
+
|
|
9
69
|
## [0.4.3] - 2022-07-18
|
|
10
70
|
|
|
11
71
|
### Fixed
|
|
@@ -195,7 +255,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
195
255
|
|
|
196
256
|
- Initial release
|
|
197
257
|
|
|
198
|
-
[Unreleased]: https://github.com/vzhd1701/gridplayer/compare/v0.
|
|
258
|
+
[Unreleased]: https://github.com/vzhd1701/gridplayer/compare/v0.5.1...HEAD
|
|
259
|
+
[0.5.1]: https://github.com/vzhd1701/gridplayer/compare/v0.5.0...v0.5.1
|
|
260
|
+
[0.5.0]: https://github.com/vzhd1701/gridplayer/compare/v0.4.3...v0.5.0
|
|
199
261
|
[0.4.3]: https://github.com/vzhd1701/gridplayer/compare/v0.4.2...v0.4.3
|
|
200
262
|
[0.4.2]: https://github.com/vzhd1701/gridplayer/compare/v0.4.1...v0.4.2
|
|
201
263
|
[0.4.1]: https://github.com/vzhd1701/gridplayer/compare/v0.4.0...v0.4.1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gridplayer
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: Play videos side-by-side
|
|
5
5
|
Home-page: https://github.com/vzhd1701/gridplayer
|
|
6
6
|
License: GPL-3.0-or-later
|
|
@@ -17,22 +17,23 @@ Classifier: Operating System :: MacOS
|
|
|
17
17
|
Classifier: Operating System :: Microsoft
|
|
18
18
|
Classifier: Operating System :: Unix
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
24
|
Classifier: Topic :: Multimedia :: Video :: Display
|
|
24
25
|
Requires-Dist: PyQt5 (==5.15.7)
|
|
25
26
|
Requires-Dist: pydantic (>=1.8.2,<2.0.0)
|
|
26
|
-
Requires-Dist: pyobjc-core; sys_platform == "darwin"
|
|
27
|
-
Requires-Dist: pyobjc-framework-Cocoa; sys_platform == "darwin"
|
|
27
|
+
Requires-Dist: pyobjc-core ; sys_platform == "darwin"
|
|
28
|
+
Requires-Dist: pyobjc-framework-Cocoa ; sys_platform == "darwin"
|
|
28
29
|
Requires-Dist: python-vlc (==3.0.11115)
|
|
29
|
-
Requires-Dist: streamlink (==
|
|
30
|
-
Requires-Dist: yt-dlp (==
|
|
30
|
+
Requires-Dist: streamlink (==5.5.1)
|
|
31
|
+
Requires-Dist: yt-dlp (==2023.03.04)
|
|
31
32
|
Project-URL: Changelog, https://github.com/vzhd1701/gridplayer/blob/master/CHANGELOG.md
|
|
32
33
|
Project-URL: Repository, https://github.com/vzhd1701/gridplayer
|
|
33
34
|
Description-Content-Type: text/markdown
|
|
34
35
|
|
|
35
|
-

|
|
36
37
|
|
|
37
38
|
[](https://pypi.python.org/pypi/gridplayer)
|
|
38
39
|
[](https://github.com/vzhd1701/gridplayer/releases/latest)
|
|
@@ -69,14 +70,22 @@ information about the position, sound volume, loops, aspect ratio, etc.
|
|
|
69
70
|
GridPlayer now supports internationalization! Anyone with a handful of free time and
|
|
70
71
|
desire to support this project is [welcome to contribute](https://crowdin.com/project/gridplayer).
|
|
71
72
|
No coding skills or special software required, all dialogs are well documented and
|
|
72
|
-
there are not many strings to translate.
|
|
73
|
+
there are not many strings to translate.
|
|
74
|
+
|
|
75
|
+
Huge thanks to [every contributor](https://github.com/vzhd1701/gridplayer#translations)!
|
|
73
76
|
|
|
74
77
|
## Installation
|
|
75
78
|
|
|
76
79
|
### Windows
|
|
77
80
|
|
|
78
|
-
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.
|
|
79
|
-
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.
|
|
81
|
+
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.1/GridPlayer-0.5.1-win64-install.exe)
|
|
82
|
+
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.1/GridPlayer-0.5.1-win64-portable.zip)
|
|
83
|
+
|
|
84
|
+
Via [scoop](https://scoop.sh/):
|
|
85
|
+
|
|
86
|
+
```shell
|
|
87
|
+
$ scoop install gridplayer
|
|
88
|
+
```
|
|
80
89
|
|
|
81
90
|
**Compatible with Windows 7, 8, 10, 11.**
|
|
82
91
|
|
|
@@ -84,7 +93,7 @@ there are not many strings to translate. Every contributor will be given proper
|
|
|
84
93
|
|
|
85
94
|
[](https://flathub.org/apps/details/com.vzhd1701.gridplayer)
|
|
86
95
|
[](https://snapcraft.io/gridplayer)
|
|
87
|
-
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.
|
|
96
|
+
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.1/GridPlayer-0.5.1-x86_64.AppImage)
|
|
88
97
|
|
|
89
98
|
**For better system integration install via Flathub.**
|
|
90
99
|
|
|
@@ -95,12 +104,12 @@ The AppImage was built using Ubuntu Focal Fossa libraries, so compatibility is U
|
|
|
95
104
|
You may need to set execute permissions on AppImage file in order to run it:
|
|
96
105
|
|
|
97
106
|
```shell
|
|
98
|
-
$ chmod +x GridPlayer-0.
|
|
107
|
+
$ chmod +x GridPlayer-0.5.1-x86_64.AppImage
|
|
99
108
|
```
|
|
100
109
|
|
|
101
110
|
### MacOS
|
|
102
111
|
|
|
103
|
-
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.
|
|
112
|
+
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.1/GridPlayer.0.5.1.dmg)
|
|
104
113
|
|
|
105
114
|
**DMG image is not signed.** You will have to add an exception to run this app.
|
|
106
115
|
|
|
@@ -176,11 +185,11 @@ To fix this, you need to allow GridPlayer snap to access system mount informatio
|
|
|
176
185
|
$ sudo snap connect gridplayer:mount-observe
|
|
177
186
|
```
|
|
178
187
|
|
|
179
|
-
#### Linux
|
|
188
|
+
#### Linux: black screen issue when using hardware decoder
|
|
180
189
|
|
|
181
190
|
Switch on "Opaque overlay (fix black screen)" checkbox in settings.
|
|
182
191
|
|
|
183
|
-
|
|
192
|
+
Depending on the window manager, the overlay might be a bit glitchy with the hardware decoder. Enabling compositor might help.
|
|
184
193
|
|
|
185
194
|
## Geting help
|
|
186
195
|
|
|
@@ -225,9 +234,62 @@ This software was build using
|
|
|
225
234
|
- **Flag Icons** by [Panayiotis Lipiridis](https://github.com/lipis/flag-icons)
|
|
226
235
|
- Licensed under *MIT License*
|
|
227
236
|
|
|
228
|
-
|
|
237
|
+
## Translations
|
|
238
|
+
|
|
239
|
+
### Arabic
|
|
240
|
+
|
|
241
|
+
- [azoaz6001](https://crowdin.com/profile/azoaz6001)
|
|
242
|
+
|
|
243
|
+
### German
|
|
244
|
+
|
|
245
|
+
- [DominikPott](https://crowdin.com/profile/dominikpott)
|
|
246
|
+
|
|
247
|
+
### Spanish
|
|
248
|
+
|
|
249
|
+
- [Sergio Varela](https://crowdin.com/profile/ingrownmink4)
|
|
250
|
+
- [asolis2020](https://crowdin.com/profile/asolis2020)
|
|
251
|
+
|
|
252
|
+
### French
|
|
253
|
+
|
|
254
|
+
- [Sylvain LOUIS](https://crowdin.com/profile/louis_sylvain)
|
|
255
|
+
|
|
256
|
+
### Hungarian
|
|
257
|
+
|
|
258
|
+
- [samu112](https://crowdin.com/profile/samu112)
|
|
259
|
+
|
|
260
|
+
### Italian
|
|
261
|
+
|
|
262
|
+
- [Davide V.](https://crowdin.com/profile/davidev1)
|
|
263
|
+
- [SolarCTP](https://crowdin.com/profile/solarctp)
|
|
264
|
+
|
|
265
|
+
### Japanese
|
|
266
|
+
|
|
267
|
+
- [七篠孝志](https://crowdin.com/profile/japanese.john.doe.774)
|
|
268
|
+
|
|
269
|
+
### Korean
|
|
270
|
+
|
|
271
|
+
- [VenusGirl](https://venusgirls.tistory.com/)
|
|
272
|
+
|
|
273
|
+
### Dutch
|
|
274
|
+
|
|
275
|
+
- [Heimen Stoffels](https://crowdin.com/profile/vistaus)
|
|
276
|
+
|
|
277
|
+
### Polish
|
|
278
|
+
|
|
279
|
+
- [rafal132](https://crowdin.com/profile/fifi132)
|
|
280
|
+
- [Sebastian Jasiński](https://crowdin.com/profile/princenorris)
|
|
281
|
+
|
|
282
|
+
### Portuguese, Brazilian
|
|
283
|
+
|
|
284
|
+
- [GBS ~ TECH](https://crowdin.com/profile/gabriel-bs1)
|
|
285
|
+
|
|
286
|
+
### Chinese Simplified
|
|
229
287
|
|
|
230
|
-
-
|
|
288
|
+
- [Yagang Wang](https://crowdin.com/profile/wyg945)
|
|
289
|
+
- [1017346](https://crowdin.com/profile/1017346)
|
|
290
|
+
- [焦新营](https://crowdin.com/profile/j149697726)
|
|
291
|
+
- [loser7788](https://crowdin.com/profile/loser7788)
|
|
292
|
+
- [李凡](https://crowdin.com/profile/lif86060)
|
|
231
293
|
|
|
232
294
|
## License
|
|
233
295
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
[](https://pypi.python.org/pypi/gridplayer)
|
|
4
4
|
[](https://github.com/vzhd1701/gridplayer/releases/latest)
|
|
@@ -35,14 +35,22 @@ information about the position, sound volume, loops, aspect ratio, etc.
|
|
|
35
35
|
GridPlayer now supports internationalization! Anyone with a handful of free time and
|
|
36
36
|
desire to support this project is [welcome to contribute](https://crowdin.com/project/gridplayer).
|
|
37
37
|
No coding skills or special software required, all dialogs are well documented and
|
|
38
|
-
there are not many strings to translate.
|
|
38
|
+
there are not many strings to translate.
|
|
39
|
+
|
|
40
|
+
Huge thanks to [every contributor](https://github.com/vzhd1701/gridplayer#translations)!
|
|
39
41
|
|
|
40
42
|
## Installation
|
|
41
43
|
|
|
42
44
|
### Windows
|
|
43
45
|
|
|
44
|
-
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.
|
|
45
|
-
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.
|
|
46
|
+
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.1/GridPlayer-0.5.1-win64-install.exe)
|
|
47
|
+
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.1/GridPlayer-0.5.1-win64-portable.zip)
|
|
48
|
+
|
|
49
|
+
Via [scoop](https://scoop.sh/):
|
|
50
|
+
|
|
51
|
+
```shell
|
|
52
|
+
$ scoop install gridplayer
|
|
53
|
+
```
|
|
46
54
|
|
|
47
55
|
**Compatible with Windows 7, 8, 10, 11.**
|
|
48
56
|
|
|
@@ -50,7 +58,7 @@ there are not many strings to translate. Every contributor will be given proper
|
|
|
50
58
|
|
|
51
59
|
[](https://flathub.org/apps/details/com.vzhd1701.gridplayer)
|
|
52
60
|
[](https://snapcraft.io/gridplayer)
|
|
53
|
-
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.
|
|
61
|
+
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.1/GridPlayer-0.5.1-x86_64.AppImage)
|
|
54
62
|
|
|
55
63
|
**For better system integration install via Flathub.**
|
|
56
64
|
|
|
@@ -61,12 +69,12 @@ The AppImage was built using Ubuntu Focal Fossa libraries, so compatibility is U
|
|
|
61
69
|
You may need to set execute permissions on AppImage file in order to run it:
|
|
62
70
|
|
|
63
71
|
```shell
|
|
64
|
-
$ chmod +x GridPlayer-0.
|
|
72
|
+
$ chmod +x GridPlayer-0.5.1-x86_64.AppImage
|
|
65
73
|
```
|
|
66
74
|
|
|
67
75
|
### MacOS
|
|
68
76
|
|
|
69
|
-
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.
|
|
77
|
+
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.1/GridPlayer.0.5.1.dmg)
|
|
70
78
|
|
|
71
79
|
**DMG image is not signed.** You will have to add an exception to run this app.
|
|
72
80
|
|
|
@@ -142,11 +150,11 @@ To fix this, you need to allow GridPlayer snap to access system mount informatio
|
|
|
142
150
|
$ sudo snap connect gridplayer:mount-observe
|
|
143
151
|
```
|
|
144
152
|
|
|
145
|
-
#### Linux
|
|
153
|
+
#### Linux: black screen issue when using hardware decoder
|
|
146
154
|
|
|
147
155
|
Switch on "Opaque overlay (fix black screen)" checkbox in settings.
|
|
148
156
|
|
|
149
|
-
|
|
157
|
+
Depending on the window manager, the overlay might be a bit glitchy with the hardware decoder. Enabling compositor might help.
|
|
150
158
|
|
|
151
159
|
## Geting help
|
|
152
160
|
|
|
@@ -191,9 +199,62 @@ This software was build using
|
|
|
191
199
|
- **Flag Icons** by [Panayiotis Lipiridis](https://github.com/lipis/flag-icons)
|
|
192
200
|
- Licensed under *MIT License*
|
|
193
201
|
|
|
194
|
-
|
|
202
|
+
## Translations
|
|
203
|
+
|
|
204
|
+
### Arabic
|
|
205
|
+
|
|
206
|
+
- [azoaz6001](https://crowdin.com/profile/azoaz6001)
|
|
207
|
+
|
|
208
|
+
### German
|
|
209
|
+
|
|
210
|
+
- [DominikPott](https://crowdin.com/profile/dominikpott)
|
|
211
|
+
|
|
212
|
+
### Spanish
|
|
213
|
+
|
|
214
|
+
- [Sergio Varela](https://crowdin.com/profile/ingrownmink4)
|
|
215
|
+
- [asolis2020](https://crowdin.com/profile/asolis2020)
|
|
216
|
+
|
|
217
|
+
### French
|
|
218
|
+
|
|
219
|
+
- [Sylvain LOUIS](https://crowdin.com/profile/louis_sylvain)
|
|
220
|
+
|
|
221
|
+
### Hungarian
|
|
222
|
+
|
|
223
|
+
- [samu112](https://crowdin.com/profile/samu112)
|
|
224
|
+
|
|
225
|
+
### Italian
|
|
226
|
+
|
|
227
|
+
- [Davide V.](https://crowdin.com/profile/davidev1)
|
|
228
|
+
- [SolarCTP](https://crowdin.com/profile/solarctp)
|
|
229
|
+
|
|
230
|
+
### Japanese
|
|
231
|
+
|
|
232
|
+
- [七篠孝志](https://crowdin.com/profile/japanese.john.doe.774)
|
|
233
|
+
|
|
234
|
+
### Korean
|
|
235
|
+
|
|
236
|
+
- [VenusGirl](https://venusgirls.tistory.com/)
|
|
237
|
+
|
|
238
|
+
### Dutch
|
|
239
|
+
|
|
240
|
+
- [Heimen Stoffels](https://crowdin.com/profile/vistaus)
|
|
241
|
+
|
|
242
|
+
### Polish
|
|
243
|
+
|
|
244
|
+
- [rafal132](https://crowdin.com/profile/fifi132)
|
|
245
|
+
- [Sebastian Jasiński](https://crowdin.com/profile/princenorris)
|
|
246
|
+
|
|
247
|
+
### Portuguese, Brazilian
|
|
248
|
+
|
|
249
|
+
- [GBS ~ TECH](https://crowdin.com/profile/gabriel-bs1)
|
|
250
|
+
|
|
251
|
+
### Chinese Simplified
|
|
195
252
|
|
|
196
|
-
-
|
|
253
|
+
- [Yagang Wang](https://crowdin.com/profile/wyg945)
|
|
254
|
+
- [1017346](https://crowdin.com/profile/1017346)
|
|
255
|
+
- [焦新营](https://crowdin.com/profile/j149697726)
|
|
256
|
+
- [loser7788](https://crowdin.com/profile/loser7788)
|
|
257
|
+
- [李凡](https://crowdin.com/profile/lif86060)
|
|
197
258
|
|
|
198
259
|
## License
|
|
199
260
|
|
|
@@ -11,6 +11,7 @@ from yt_dlp.version import __version__ as YT_DLP_VERSION
|
|
|
11
11
|
|
|
12
12
|
from gridplayer.dialogs.about_dialog_ui import Ui_AboutDialog
|
|
13
13
|
from gridplayer.params import env
|
|
14
|
+
from gridplayer.params.languages import LANGUAGES
|
|
14
15
|
from gridplayer.version import (
|
|
15
16
|
__app_bugtracker_url__,
|
|
16
17
|
__app_license_url__,
|
|
@@ -30,12 +31,6 @@ class Attribution(NamedTuple):
|
|
|
30
31
|
url: str
|
|
31
32
|
|
|
32
33
|
|
|
33
|
-
class AttributionTranslation(NamedTuple):
|
|
34
|
-
language: str
|
|
35
|
-
author: str
|
|
36
|
-
author_url: str
|
|
37
|
-
|
|
38
|
-
|
|
39
34
|
class AboutDialog(QDialog, Ui_AboutDialog):
|
|
40
35
|
def __init__(self, parent):
|
|
41
36
|
super().__init__(parent)
|
|
@@ -160,13 +155,6 @@ class AboutDialog(QDialog, Ui_AboutDialog):
|
|
|
160
155
|
"https://github.com/lipis/flag-icons",
|
|
161
156
|
),
|
|
162
157
|
],
|
|
163
|
-
"translation": [
|
|
164
|
-
AttributionTranslation(
|
|
165
|
-
"Hungarian",
|
|
166
|
-
"samu112",
|
|
167
|
-
"https://crowdin.com/profile/samu112",
|
|
168
|
-
),
|
|
169
|
-
],
|
|
170
158
|
}
|
|
171
159
|
|
|
172
160
|
attributions_txt = [
|
|
@@ -178,7 +166,7 @@ class AboutDialog(QDialog, Ui_AboutDialog):
|
|
|
178
166
|
"<h3>{0}</h3>".format(self.tr("Graphics")),
|
|
179
167
|
self.generate_attributions(attributions["gui"]),
|
|
180
168
|
"<h3>{0}</h3>".format(self.tr("Translations")),
|
|
181
|
-
self.generate_attributions_translations(
|
|
169
|
+
self.generate_attributions_translations(),
|
|
182
170
|
]
|
|
183
171
|
|
|
184
172
|
self.attributionsBox.setText("\n".join(attributions_txt))
|
|
@@ -190,7 +178,7 @@ class AboutDialog(QDialog, Ui_AboutDialog):
|
|
|
190
178
|
app_url = f'<a href="{a.url}">{a.author}</a>'
|
|
191
179
|
|
|
192
180
|
attribution_txt = (
|
|
193
|
-
|
|
181
|
+
'<p style="line-height: 130%"><b>{APP_TITLE}</b><br>{APP_URL}<br>'
|
|
194
182
|
"<i>{LICENSED_UNDER}<br>{APP_LICENSE}</i></p>"
|
|
195
183
|
)
|
|
196
184
|
|
|
@@ -205,18 +193,21 @@ class AboutDialog(QDialog, Ui_AboutDialog):
|
|
|
205
193
|
|
|
206
194
|
return "\n".join(attributions_txt)
|
|
207
195
|
|
|
208
|
-
def generate_attributions_translations(
|
|
209
|
-
self, attributions: List[AttributionTranslation]
|
|
210
|
-
):
|
|
196
|
+
def generate_attributions_translations(self):
|
|
211
197
|
attributions_txt = []
|
|
212
|
-
for a in attributions:
|
|
213
|
-
author_url = f'<a href="{a.author_url}">{a.author}</a>'
|
|
214
|
-
|
|
215
|
-
attribution_txt = self.tr("<p><b>{LANGUAGE}</b> by {AUTHOR_URL}</p>")
|
|
216
198
|
|
|
217
|
-
|
|
218
|
-
|
|
199
|
+
for language in LANGUAGES:
|
|
200
|
+
if not language.authors:
|
|
201
|
+
continue
|
|
219
202
|
|
|
203
|
+
attribution_txt = (
|
|
204
|
+
'<p style="line-height: 130%">'
|
|
205
|
+
"<b>{language}<br>({country})</b><br>{authors}</p>".format(
|
|
206
|
+
language=language.title_native,
|
|
207
|
+
country=language.country_native,
|
|
208
|
+
authors="<br/>".join(language.author_links),
|
|
209
|
+
)
|
|
210
|
+
)
|
|
220
211
|
attributions_txt.append(attribution_txt)
|
|
221
212
|
|
|
222
213
|
return "\n".join(attributions_txt)
|
|
@@ -2,21 +2,23 @@ import contextlib
|
|
|
2
2
|
import logging
|
|
3
3
|
import subprocess
|
|
4
4
|
|
|
5
|
-
from PyQt5.QtCore import
|
|
5
|
+
from PyQt5.QtCore import QUrl
|
|
6
6
|
from PyQt5.QtGui import QDesktopServices, QIcon, QPalette
|
|
7
7
|
from PyQt5.QtWidgets import QCheckBox, QComboBox, QDialog, QLineEdit, QSpinBox
|
|
8
8
|
|
|
9
9
|
from gridplayer.dialogs.messagebox import QCustomMessageBox
|
|
10
10
|
from gridplayer.dialogs.settings_dialog_ui import Ui_SettingsDialog
|
|
11
11
|
from gridplayer.params import env
|
|
12
|
+
from gridplayer.params.languages import LANGUAGES
|
|
12
13
|
from gridplayer.params.static import (
|
|
13
|
-
|
|
14
|
+
AudioChannelMode,
|
|
14
15
|
GridMode,
|
|
15
16
|
SeekSyncMode,
|
|
16
17
|
URLResolver,
|
|
17
18
|
VideoAspect,
|
|
18
19
|
VideoDriver,
|
|
19
20
|
VideoRepeat,
|
|
21
|
+
VideoTransform,
|
|
20
22
|
)
|
|
21
23
|
from gridplayer.settings import Settings
|
|
22
24
|
from gridplayer.utils import log_config
|
|
@@ -71,8 +73,11 @@ class SettingsDialog(QDialog, Ui_SettingsDialog):
|
|
|
71
73
|
"player/pause_minimized": self.playerPauseWhenMinimized,
|
|
72
74
|
"player/inhibit_screensaver": self.playerInhibitScreensaver,
|
|
73
75
|
"player/one_instance": self.playerOneInstance,
|
|
76
|
+
"player/stay_on_top": self.playerStayOnTop,
|
|
74
77
|
"player/show_overlay_border": self.playerShowOverlayBorder,
|
|
75
78
|
"player/language": self.listLanguages,
|
|
79
|
+
"player/recent_list_enabled": self.playerRecentList,
|
|
80
|
+
"player/recent_list_max_size": self.playerRecentListSize,
|
|
76
81
|
"playlist/grid_mode": self.gridMode,
|
|
77
82
|
"playlist/grid_fit": self.gridFit,
|
|
78
83
|
"playlist/grid_size": self.gridSize,
|
|
@@ -85,7 +90,9 @@ class SettingsDialog(QDialog, Ui_SettingsDialog):
|
|
|
85
90
|
"playlist/disable_click_pause": self.playlistDisableClickPause,
|
|
86
91
|
"playlist/disable_wheel_seek": self.playlistDisableWheelSeek,
|
|
87
92
|
"video_defaults/aspect": self.videoAspect,
|
|
93
|
+
"video_defaults/transform": self.videoTransform,
|
|
88
94
|
"video_defaults/repeat": self.repeatMode,
|
|
95
|
+
"video_defaults/audio_mode": self.videoAudioMode,
|
|
89
96
|
"video_defaults/random_loop": self.videoRandomLoop,
|
|
90
97
|
"video_defaults/muted": self.videoMuted,
|
|
91
98
|
"video_defaults/paused": self.videoPaused,
|
|
@@ -126,6 +133,9 @@ class SettingsDialog(QDialog, Ui_SettingsDialog):
|
|
|
126
133
|
|
|
127
134
|
_set_groupbox_header_bold(self.playerVideoDriverBox)
|
|
128
135
|
|
|
136
|
+
if env.IS_LINUX:
|
|
137
|
+
self.playerStayOnTop.hide()
|
|
138
|
+
|
|
129
139
|
if not env.IS_LINUX:
|
|
130
140
|
self.section_misc.hide()
|
|
131
141
|
self.miscOpaqueHWOverlay.hide()
|
|
@@ -145,6 +155,7 @@ class SettingsDialog(QDialog, Ui_SettingsDialog):
|
|
|
145
155
|
self.fill_playerVideoDriver()
|
|
146
156
|
self.fill_gridMode()
|
|
147
157
|
self.fill_videoAspect()
|
|
158
|
+
self.fill_videoTransform()
|
|
148
159
|
self.fill_repeatMode()
|
|
149
160
|
self.fill_logLevel()
|
|
150
161
|
self.fill_logLevelVLC()
|
|
@@ -152,6 +163,7 @@ class SettingsDialog(QDialog, Ui_SettingsDialog):
|
|
|
152
163
|
self.fill_streamQuality()
|
|
153
164
|
self.fill_playlistSeekSyncMode()
|
|
154
165
|
self.fill_streamingResolverPriority()
|
|
166
|
+
self.fill_videoAudioMode()
|
|
155
167
|
|
|
156
168
|
def ui_set_limits(self): # noqa: WPS213
|
|
157
169
|
self.playerVideoDriverPlayers.setRange(1, MAX_VLC_PROCESSES)
|
|
@@ -160,6 +172,7 @@ class SettingsDialog(QDialog, Ui_SettingsDialog):
|
|
|
160
172
|
self.logLimitSize.setRange(1, 1024 * 1024)
|
|
161
173
|
self.logLimitBackups.setRange(1, 1000)
|
|
162
174
|
self.timeoutVideoInit.setRange(1, 1000)
|
|
175
|
+
self.playerRecentListSize.setRange(1, 100)
|
|
163
176
|
|
|
164
177
|
self.gridSize.setRange(0, 1000)
|
|
165
178
|
self.gridSize.setSpecialValueText(translate("Grid Size", "Auto"))
|
|
@@ -176,6 +189,7 @@ class SettingsDialog(QDialog, Ui_SettingsDialog):
|
|
|
176
189
|
self.logLimitSize.setEnabled(self.logLimit.isChecked())
|
|
177
190
|
self.logLimitBackups.setEnabled(self.logLimit.isChecked())
|
|
178
191
|
self.streamingWildcardHelp.setVisible(False)
|
|
192
|
+
self.playerRecentListSize.setEnabled(self.playerRecentList.isChecked())
|
|
179
193
|
|
|
180
194
|
self.switch_page(None)
|
|
181
195
|
|
|
@@ -190,6 +204,7 @@ class SettingsDialog(QDialog, Ui_SettingsDialog):
|
|
|
190
204
|
(self.logLimit.stateChanged, self.logLimitSize.setEnabled),
|
|
191
205
|
(self.logLimit.stateChanged, self.logLimitBackups.setEnabled),
|
|
192
206
|
(self.streamingWildcardHelpButton.clicked, self.toggle_wildcard_help),
|
|
207
|
+
(self.playerRecentList.stateChanged, self.playerRecentListSize.setEnabled),
|
|
193
208
|
)
|
|
194
209
|
|
|
195
210
|
def toggle_wildcard_help(self):
|
|
@@ -273,6 +288,20 @@ class SettingsDialog(QDialog, Ui_SettingsDialog):
|
|
|
273
288
|
|
|
274
289
|
_fill_combo_box(self.videoAspect, aspect_ratios)
|
|
275
290
|
|
|
291
|
+
def fill_videoTransform(self):
|
|
292
|
+
transform_options = {
|
|
293
|
+
VideoTransform.ROTATE_90: self.tr("Rotate 90"),
|
|
294
|
+
VideoTransform.ROTATE_180: self.tr("Rotate 180"),
|
|
295
|
+
VideoTransform.ROTATE_270: self.tr("Rotate 270"),
|
|
296
|
+
VideoTransform.HFLIP: self.tr("Flip Horizontally"),
|
|
297
|
+
VideoTransform.VFLIP: self.tr("Flip Vertically"),
|
|
298
|
+
VideoTransform.TRANSPOSE: self.tr("Transpose"),
|
|
299
|
+
VideoTransform.ANTITRANSPOSE: self.tr("Anti-transpose"),
|
|
300
|
+
VideoTransform.NONE: self.tr("No Transform"),
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
_fill_combo_box(self.videoTransform, transform_options)
|
|
304
|
+
|
|
276
305
|
def fill_repeatMode(self):
|
|
277
306
|
repeat_modes = {
|
|
278
307
|
VideoRepeat.SINGLE_FILE: self.tr("Single File"),
|
|
@@ -318,26 +347,15 @@ class SettingsDialog(QDialog, Ui_SettingsDialog):
|
|
|
318
347
|
_fill_combo_box(self.playerVideoDriver, video_drivers)
|
|
319
348
|
|
|
320
349
|
def fill_language(self):
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
"language": QLocale(lang_id).nativeLanguageName().title(),
|
|
324
|
-
"country": QLocale(lang_id).nativeCountryName().title(),
|
|
325
|
-
"icon": f":/icons/flag_{lang_id}.svg",
|
|
326
|
-
"author": lang["author"],
|
|
327
|
-
}
|
|
328
|
-
for lang_id, lang in SUPPORTED_LANGUAGES.items()
|
|
329
|
-
}
|
|
330
|
-
sorted_languages = dict(
|
|
331
|
-
sorted(languages.items(), key=lambda x: x[1]["language"])
|
|
332
|
-
)
|
|
333
|
-
|
|
334
|
-
for lang_id, lang in sorted_languages.items():
|
|
335
|
-
self.listLanguages.add_language_row(lang_id, lang)
|
|
350
|
+
for language in LANGUAGES:
|
|
351
|
+
self.listLanguages.add_language_row(language)
|
|
336
352
|
|
|
337
353
|
def fill_streamQuality(self):
|
|
338
354
|
quality_codes = {
|
|
339
355
|
"best": self.tr("Best"),
|
|
340
356
|
"worst": self.tr("Worst"),
|
|
357
|
+
"best_audio_only": self.tr("Best (Audio Only)"),
|
|
358
|
+
"worst_audio_only": self.tr("Worst (Audio Only)"),
|
|
341
359
|
}
|
|
342
360
|
|
|
343
361
|
standard_quality_codes = [
|
|
@@ -378,6 +396,20 @@ class SettingsDialog(QDialog, Ui_SettingsDialog):
|
|
|
378
396
|
|
|
379
397
|
_fill_combo_box(self.streamingResolverPriority, resolvers)
|
|
380
398
|
|
|
399
|
+
def fill_videoAudioMode(self):
|
|
400
|
+
modes = {
|
|
401
|
+
AudioChannelMode.UNSET: translate("Audio Mode", "Original"),
|
|
402
|
+
AudioChannelMode.STEREO: translate("Audio Mode", "Stereo"),
|
|
403
|
+
AudioChannelMode.RSTEREO: translate("Audio Mode", "Reverse Stereo"),
|
|
404
|
+
AudioChannelMode.LEFT: translate("Audio Mode", "Left"),
|
|
405
|
+
AudioChannelMode.RIGHT: translate("Audio Mode", "Right"),
|
|
406
|
+
AudioChannelMode.DOLBYS: translate("Audio Mode", "Dolby Surround"),
|
|
407
|
+
AudioChannelMode.HEADPHONES: translate("Audio Mode", "Headphones"),
|
|
408
|
+
AudioChannelMode.MONO: translate("Audio Mode", "Mono"),
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
_fill_combo_box(self.videoAudioMode, modes)
|
|
412
|
+
|
|
381
413
|
def driver_selected(self, idx):
|
|
382
414
|
driver_id = self.playerVideoDriver.itemData(idx)
|
|
383
415
|
|