gridplayer 0.5.1__tar.gz → 0.5.2__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.5.1 → gridplayer-0.5.2}/CHANGELOG.md +13 -1
- {gridplayer-0.5.1 → gridplayer-0.5.2}/PKG-INFO +9 -10
- {gridplayer-0.5.1 → gridplayer-0.5.2}/README.md +5 -5
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/stream_proxy/m3u8.py +13 -5
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/stream_proxy/server.py +22 -3
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/stream_proxy/session.py +1 -1
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/stream_proxy/wrappers.py +2 -3
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/url_resolve/resolver_yt_dlp.py +22 -1
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/version.py +2 -2
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/vlc_player/player_base.py +16 -1
- {gridplayer-0.5.1 → gridplayer-0.5.2}/pyproject.toml +5 -5
- {gridplayer-0.5.1 → gridplayer-0.5.2}/LICENSE +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/__init__.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/__main__.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/dialogs/__init__.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/dialogs/about.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/dialogs/about_dialog_ui.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/dialogs/add_urls.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/dialogs/exception.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/dialogs/exception_dialog_ui.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/dialogs/input_dialog.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/dialogs/messagebox.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/dialogs/rename_dialog.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/dialogs/settings.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/dialogs/settings_dialog_ui.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/exceptions.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/main/__init__.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/main/init_app.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/main/init_app_env.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/main/init_icons.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/main/init_log.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/main/init_resources.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/main/init_translator.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/main/run.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/models/__init__.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/models/grid_state.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/models/playlist.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/models/recent_list.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/models/resolver_patterns.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/models/stream.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/models/video.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/models/video_uri.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/multiprocess/__init__.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/multiprocess/command_loop.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/multiprocess/instance_process.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/multiprocess/process_manager.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/multiprocess/safe_shared_memory.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/params/__init__.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/params/actions.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/params/env.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/params/extensions.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/params/languages.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/params/menu.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/params/static.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/__init__.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/manager.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/__init__.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/actions.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/active_block.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/add_videos.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/base.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/dialogs.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/drag_n_drop.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/grid.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/instance_listener.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/log.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/macos_fileopen.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/menu.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/mouse_hide.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/playlist.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/recent_list.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/screensaver.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/settings.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/single_mode.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/snapshots.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/stream_proxy.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/video_blocks.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/video_driver.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/managers/window_state.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/player/player.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/resources_bin.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/settings.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/__init__.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/app_dir.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/aspect_calc.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/command_helpers.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/darkmode.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/excepthook.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/files.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/keepawake.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/keepawake_macos.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/libvlc.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/libvlc_fixer.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/libvlc_options_parser.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/log.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/log_config.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/misc.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/next_file.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/qt.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/single_instance.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/stream_proxy/__init__.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/stream_proxy/stream_proxy.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/time_txt.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/url_resolve/__init__.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/url_resolve/resolver_base.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/url_resolve/resolver_streamlink.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/url_resolve/static.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/url_resolve/stream_detect.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/utils/url_resolve/url_resolve.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/vlc_player/__init__.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/vlc_player/image_decoder.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/vlc_player/instance.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/vlc_player/libvlc.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/vlc_player/player_base_threaded.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/vlc_player/player_event_manager.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/vlc_player/player_event_waiter.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/vlc_player/player_tracks_manager.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/vlc_player/static.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/vlc_player/video_driver_base.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/vlc_player/video_driver_base_threaded.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/__init__.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/custom_menu.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/language_list.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/resolver_patterns_list.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/video_block.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/video_frame_dummy.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/video_frame_vlc_base.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/video_frame_vlc_hw.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/video_frame_vlc_hw_sp.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/video_frame_vlc_sw.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/video_overlay.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/video_overlay_buttons.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/video_overlay_elements.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/video_overlay_icons.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/video_status.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/video_status_info.py +0 -0
- {gridplayer-0.5.1 → gridplayer-0.5.2}/gridplayer/widgets/video_status_loading.py +0 -0
|
@@ -6,6 +6,17 @@ 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.2] - 2023-08-23
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
* Update yt-dlp and Streamlink ([442f71f](https://github.com/vzhd1701/gridplayer/commit/442f71fe3dcf6254b9bfb7a750752dcaff7733fd))
|
|
14
|
+
* Show stream bitrate and codec name if parsed by yt-dlp ([75f84cd](https://github.com/vzhd1701/gridplayer/commit/75f84cd6149690d804cb265262e3e5b4f35716a3))
|
|
15
|
+
* Retry if HLS video time is not initialized ([66c6e48](https://github.com/vzhd1701/gridplayer/commit/66c6e48940a793e7647efb3fbf2cb95294b68b15))
|
|
16
|
+
* Fix compatibility with new Streamlink API ([90c3adc](https://github.com/vzhd1701/gridplayer/commit/90c3adc1cfd083f7ad78237db1946828669fcef6))
|
|
17
|
+
* Fix m3u8 format generated by HLS proxy ([b12e370](https://github.com/vzhd1701/gridplayer/commit/b12e37026ff7558da8e1a8a6dbd8d2d5265eeb3d))
|
|
18
|
+
* Fix relay proxy chunked encoding ([57e5aef](https://github.com/vzhd1701/gridplayer/commit/57e5aef3efa2aaa13cca79d6a246e0daa0e2f639))
|
|
19
|
+
|
|
9
20
|
## [0.5.1] - 2023-06-05
|
|
10
21
|
|
|
11
22
|
### Added
|
|
@@ -255,7 +266,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
255
266
|
|
|
256
267
|
- Initial release
|
|
257
268
|
|
|
258
|
-
[Unreleased]: https://github.com/vzhd1701/gridplayer/compare/v0.5.
|
|
269
|
+
[Unreleased]: https://github.com/vzhd1701/gridplayer/compare/v0.5.2...HEAD
|
|
270
|
+
[0.5.2]: https://github.com/vzhd1701/gridplayer/compare/v0.5.1...v0.5.2
|
|
259
271
|
[0.5.1]: https://github.com/vzhd1701/gridplayer/compare/v0.5.0...v0.5.1
|
|
260
272
|
[0.5.0]: https://github.com/vzhd1701/gridplayer/compare/v0.4.3...v0.5.0
|
|
261
273
|
[0.4.3]: https://github.com/vzhd1701/gridplayer/compare/v0.4.2...v0.4.3
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gridplayer
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.2
|
|
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
|
|
7
7
|
Keywords: video,player,vlc,pyqt,Qt5,multimedia
|
|
8
8
|
Author: vzhd1701
|
|
9
9
|
Author-email: vzhd1701@gmail.com
|
|
10
|
-
Requires-Python: >=3.8,<4.0
|
|
10
|
+
Requires-Python: >=3.8.1,<4.0.0
|
|
11
11
|
Classifier: Development Status :: 4 - Beta
|
|
12
12
|
Classifier: Environment :: X11 Applications :: Qt
|
|
13
13
|
Classifier: Intended Audience :: End Users/Desktop
|
|
@@ -17,7 +17,6 @@ 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.8
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.10
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -27,8 +26,8 @@ Requires-Dist: pydantic (>=1.8.2,<2.0.0)
|
|
|
27
26
|
Requires-Dist: pyobjc-core ; sys_platform == "darwin"
|
|
28
27
|
Requires-Dist: pyobjc-framework-Cocoa ; sys_platform == "darwin"
|
|
29
28
|
Requires-Dist: python-vlc (==3.0.11115)
|
|
30
|
-
Requires-Dist: streamlink (==
|
|
31
|
-
Requires-Dist: yt-dlp (==2023.
|
|
29
|
+
Requires-Dist: streamlink (==6.1.0)
|
|
30
|
+
Requires-Dist: yt-dlp (==2023.7.6)
|
|
32
31
|
Project-URL: Changelog, https://github.com/vzhd1701/gridplayer/blob/master/CHANGELOG.md
|
|
33
32
|
Project-URL: Repository, https://github.com/vzhd1701/gridplayer
|
|
34
33
|
Description-Content-Type: text/markdown
|
|
@@ -78,8 +77,8 @@ Huge thanks to [every contributor](https://github.com/vzhd1701/gridplayer#transl
|
|
|
78
77
|
|
|
79
78
|
### Windows
|
|
80
79
|
|
|
81
|
-
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.
|
|
82
|
-
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.
|
|
80
|
+
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.2/GridPlayer-0.5.2-win64-install.exe)
|
|
81
|
+
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.2/GridPlayer-0.5.2-win64-portable.zip)
|
|
83
82
|
|
|
84
83
|
Via [scoop](https://scoop.sh/):
|
|
85
84
|
|
|
@@ -93,7 +92,7 @@ $ scoop install gridplayer
|
|
|
93
92
|
|
|
94
93
|
[](https://flathub.org/apps/details/com.vzhd1701.gridplayer)
|
|
95
94
|
[](https://snapcraft.io/gridplayer)
|
|
96
|
-
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.
|
|
95
|
+
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.2/GridPlayer-0.5.2-x86_64.AppImage)
|
|
97
96
|
|
|
98
97
|
**For better system integration install via Flathub.**
|
|
99
98
|
|
|
@@ -104,12 +103,12 @@ The AppImage was built using Ubuntu Focal Fossa libraries, so compatibility is U
|
|
|
104
103
|
You may need to set execute permissions on AppImage file in order to run it:
|
|
105
104
|
|
|
106
105
|
```shell
|
|
107
|
-
$ chmod +x GridPlayer-0.5.
|
|
106
|
+
$ chmod +x GridPlayer-0.5.2-x86_64.AppImage
|
|
108
107
|
```
|
|
109
108
|
|
|
110
109
|
### MacOS
|
|
111
110
|
|
|
112
|
-
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.
|
|
111
|
+
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.2/GridPlayer.0.5.2.dmg)
|
|
113
112
|
|
|
114
113
|
**DMG image is not signed.** You will have to add an exception to run this app.
|
|
115
114
|
|
|
@@ -43,8 +43,8 @@ Huge thanks to [every contributor](https://github.com/vzhd1701/gridplayer#transl
|
|
|
43
43
|
|
|
44
44
|
### Windows
|
|
45
45
|
|
|
46
|
-
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.
|
|
47
|
-
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.
|
|
46
|
+
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.2/GridPlayer-0.5.2-win64-install.exe)
|
|
47
|
+
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.2/GridPlayer-0.5.2-win64-portable.zip)
|
|
48
48
|
|
|
49
49
|
Via [scoop](https://scoop.sh/):
|
|
50
50
|
|
|
@@ -58,7 +58,7 @@ $ scoop install gridplayer
|
|
|
58
58
|
|
|
59
59
|
[](https://flathub.org/apps/details/com.vzhd1701.gridplayer)
|
|
60
60
|
[](https://snapcraft.io/gridplayer)
|
|
61
|
-
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.
|
|
61
|
+
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.2/GridPlayer-0.5.2-x86_64.AppImage)
|
|
62
62
|
|
|
63
63
|
**For better system integration install via Flathub.**
|
|
64
64
|
|
|
@@ -69,12 +69,12 @@ The AppImage was built using Ubuntu Focal Fossa libraries, so compatibility is U
|
|
|
69
69
|
You may need to set execute permissions on AppImage file in order to run it:
|
|
70
70
|
|
|
71
71
|
```shell
|
|
72
|
-
$ chmod +x GridPlayer-0.5.
|
|
72
|
+
$ chmod +x GridPlayer-0.5.2-x86_64.AppImage
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
### MacOS
|
|
76
76
|
|
|
77
|
-
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.
|
|
77
|
+
[](https://github.com/vzhd1701/gridplayer/releases/download/v0.5.2/GridPlayer.0.5.2.dmg)
|
|
78
78
|
|
|
79
79
|
**DMG image is not signed.** You will have to add an exception to run this app.
|
|
80
80
|
|
|
@@ -8,10 +8,11 @@ LIVESTREAM_EDGE = 16
|
|
|
8
8
|
def m3u8_to_str(hls_playlist: M3U8):
|
|
9
9
|
res = ["#EXTM3U"]
|
|
10
10
|
res += [f"#EXT-X-VERSION:{hls_playlist.version}"]
|
|
11
|
-
res += [f"#EXT-X-TARGETDURATION:{hls_playlist.target_duration}"]
|
|
12
11
|
if hls_playlist.playlist_type:
|
|
13
12
|
res += [f"#EXT-X-PLAYLIST-TYPE:{hls_playlist.playlist_type}"]
|
|
14
|
-
|
|
13
|
+
if hls_playlist.media_sequence:
|
|
14
|
+
res += [f"#EXT-X-MEDIA-SEQUENCE:{hls_playlist.media_sequence}"]
|
|
15
|
+
res += [f"#EXT-X-TARGETDURATION:{hls_playlist.targetduration}"]
|
|
15
16
|
|
|
16
17
|
# grab only the edge if it's a livestream
|
|
17
18
|
if hls_playlist.media_sequence:
|
|
@@ -19,7 +20,14 @@ def m3u8_to_str(hls_playlist: M3U8):
|
|
|
19
20
|
else:
|
|
20
21
|
segments = hls_playlist.segments
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
s_map = None
|
|
24
|
+
for s in segments:
|
|
25
|
+
if s.map is not None and s.map != s_map:
|
|
26
|
+
s_map = s.map
|
|
27
|
+
|
|
28
|
+
res += _segment_to_str(s, add_map=True)
|
|
29
|
+
else:
|
|
30
|
+
res += _segment_to_str(s)
|
|
23
31
|
|
|
24
32
|
if hls_playlist.is_endlist:
|
|
25
33
|
res += ["#EXT-X-ENDLIST"]
|
|
@@ -27,7 +35,7 @@ def m3u8_to_str(hls_playlist: M3U8):
|
|
|
27
35
|
return "\n".join(res)
|
|
28
36
|
|
|
29
37
|
|
|
30
|
-
def _segment_to_str(segment: Segment) -> List[str]:
|
|
38
|
+
def _segment_to_str(segment: Segment, add_map=False) -> List[str]:
|
|
31
39
|
res = []
|
|
32
40
|
|
|
33
41
|
if segment.date:
|
|
@@ -38,7 +46,7 @@ def _segment_to_str(segment: Segment) -> List[str]:
|
|
|
38
46
|
res += ["#EXT-X-DISCONTINUITY"]
|
|
39
47
|
if segment.byterange:
|
|
40
48
|
res += ["#EXT-X-BYTERANGE:{0}".format(_byterange_to_str(segment.byterange))]
|
|
41
|
-
if segment.map:
|
|
49
|
+
if segment.map and add_map:
|
|
42
50
|
res += [
|
|
43
51
|
'#EXT-X-MAP:URI="{0}"{1}'.format(
|
|
44
52
|
segment.map.uri,
|
|
@@ -164,15 +164,21 @@ class ProxyRequestHandler(BaseHTTPRequestHandler):
|
|
|
164
164
|
):
|
|
165
165
|
self.send_response(response.status_code, response.reason)
|
|
166
166
|
|
|
167
|
-
for h_key, h_value in response.headers.items():
|
|
167
|
+
for h_key, h_value in _filter_response_headers(dict(response.headers)).items():
|
|
168
168
|
self.send_header(h_key, h_value)
|
|
169
169
|
|
|
170
170
|
self.end_headers()
|
|
171
171
|
|
|
172
172
|
chunks = chunks or [response.content]
|
|
173
173
|
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
if response.headers.get("transfer-encoding") == "chunked":
|
|
175
|
+
for chunk in chunks:
|
|
176
|
+
self.wfile.write(b"%X\r\n%s\r\n" % (len(chunk), chunk))
|
|
177
|
+
self.wfile.write(b"0\r\n\r\n")
|
|
178
|
+
else:
|
|
179
|
+
for chunk in chunks:
|
|
180
|
+
self.wfile.write(chunk)
|
|
181
|
+
|
|
176
182
|
self.wfile.flush()
|
|
177
183
|
|
|
178
184
|
|
|
@@ -195,3 +201,16 @@ def _filter_request_headers(headers: Dict[str, str]):
|
|
|
195
201
|
for k, v in headers.items()
|
|
196
202
|
if k.lower() not in filtered_headers # noqa: WPS221
|
|
197
203
|
}
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
def _filter_response_headers(headers: Dict[str, str]):
|
|
207
|
+
filtered_headers = {
|
|
208
|
+
"server",
|
|
209
|
+
"date",
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return {
|
|
213
|
+
k: v
|
|
214
|
+
for k, v in headers.items()
|
|
215
|
+
if k.lower() not in filtered_headers # noqa: WPS221
|
|
216
|
+
}
|
|
@@ -40,7 +40,7 @@ class StreamSession(object):
|
|
|
40
40
|
)
|
|
41
41
|
elif protocol == "hls":
|
|
42
42
|
self._log.debug("Stream is hls, using HLSProxyLive")
|
|
43
|
-
return HLSProxyLive(
|
|
43
|
+
return HLSProxyLive(session=self._session, url=url, force_restart=True)
|
|
44
44
|
|
|
45
45
|
raise RuntimeError(f"Cannot handle protocol {protocol}")
|
|
46
46
|
|
|
@@ -92,9 +92,8 @@ class HLSProxy(HTTPStreamProxy):
|
|
|
92
92
|
hls_playlist.segments[i] = segment._replace(uri=segment_url)
|
|
93
93
|
|
|
94
94
|
if segment.map:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
)
|
|
95
|
+
s_map = segment.map._replace(uri=self._proxify_url(segment.map.uri))
|
|
96
|
+
hls_playlist.segments[i] = hls_playlist.segments[i]._replace(map=s_map)
|
|
98
97
|
|
|
99
98
|
return m3u8_to_str(hls_playlist)
|
|
100
99
|
|
|
@@ -217,17 +217,38 @@ def _get_stream_url(stream, is_live) -> Tuple[str, str]:
|
|
|
217
217
|
|
|
218
218
|
def _get_fmt_name(stream, unknown_counter, is_muxed=False):
|
|
219
219
|
fmt_name = stream.get("format_note") or stream.get("format_id")
|
|
220
|
+
codec_info = _get_codec_info(stream)
|
|
220
221
|
|
|
221
222
|
if not re.match(r"^\d+p", fmt_name):
|
|
222
223
|
if stream.get("height"):
|
|
223
|
-
if
|
|
224
|
+
if codec_info:
|
|
225
|
+
fmt_name = "{0}p [{1}]".format(stream["height"], codec_info)
|
|
226
|
+
elif stream.get("format_id"):
|
|
224
227
|
fmt_name = "{0}p [{1}]".format(stream["height"], stream["format_id"])
|
|
225
228
|
else:
|
|
226
229
|
fmt_name = "{0}p".format(stream["height"])
|
|
227
230
|
else:
|
|
228
231
|
fmt_name = stream.get("format", "Unknown {0}".format(next(unknown_counter)))
|
|
229
232
|
|
|
233
|
+
if codec_info:
|
|
234
|
+
fmt_name = f"{fmt_name} [{codec_info}]"
|
|
235
|
+
|
|
230
236
|
if stream.get("acodec") == "none" and not is_muxed:
|
|
231
237
|
fmt_name += " (video only)"
|
|
232
238
|
|
|
233
239
|
return fmt_name
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
def _get_codec_info(stream):
|
|
243
|
+
codec = ""
|
|
244
|
+
|
|
245
|
+
if stream.get("vcodec") not in {None, "none"}:
|
|
246
|
+
codec = stream.get("vcodec").split(".")[0]
|
|
247
|
+
elif stream.get("acodec") not in {None, "none"}:
|
|
248
|
+
codec = stream.get("acodec").split(".")[0]
|
|
249
|
+
|
|
250
|
+
if stream.get("tbr") not in {None, 0}:
|
|
251
|
+
tbr = int(stream.get("tbr"))
|
|
252
|
+
codec += f" {tbr}kbps"
|
|
253
|
+
|
|
254
|
+
return codec.strip()
|
|
@@ -3,8 +3,8 @@ __display_name__ = "GridPlayer"
|
|
|
3
3
|
__author_name__ = "vzhd1701"
|
|
4
4
|
__author_contact__ = "vzhd1701@gmail.com"
|
|
5
5
|
__app_id__ = "com.vzhd1701.gridplayer"
|
|
6
|
-
__version__ = "0.5.
|
|
7
|
-
__version_date__ = "2023-
|
|
6
|
+
__version__ = "0.5.2"
|
|
7
|
+
__version_date__ = "2023-08-23"
|
|
8
8
|
__app_url__ = "https://github.com/vzhd1701/gridplayer"
|
|
9
9
|
__app_license_url__ = "https://github.com/vzhd1701/gridplayer/blob/master/LICENSE"
|
|
10
10
|
__app_bugtracker_url__ = "https://github.com/vzhd1701/gridplayer/issues"
|
|
@@ -72,6 +72,7 @@ class VlcPlayerBase(ABC):
|
|
|
72
72
|
|
|
73
73
|
self._timeout_init_start = None
|
|
74
74
|
self._timeout_init = None
|
|
75
|
+
self._get_time_retries = 0
|
|
75
76
|
|
|
76
77
|
self._timer_unpause_failsafe = None
|
|
77
78
|
self._timer_extract_media_track = None
|
|
@@ -318,6 +319,7 @@ class VlcPlayerBase(ABC):
|
|
|
318
319
|
|
|
319
320
|
self._timeout_init = Settings().sync_get("player/video_init_timeout")
|
|
320
321
|
self._timeout_init_start = time()
|
|
322
|
+
self._get_time_retries = 0
|
|
321
323
|
|
|
322
324
|
self.media_input = media_input
|
|
323
325
|
|
|
@@ -626,11 +628,24 @@ class VlcPlayerBase(ABC):
|
|
|
626
628
|
if self.is_video_size_required:
|
|
627
629
|
return None
|
|
628
630
|
|
|
631
|
+
length = self._get_duration()
|
|
632
|
+
|
|
633
|
+
if not self.media_input.is_live and length == -1:
|
|
634
|
+
if self._get_time_retries < 10:
|
|
635
|
+
self._get_time_retries += 1
|
|
636
|
+
self._log.debug(
|
|
637
|
+
f"Video time not initialized yet,"
|
|
638
|
+
f" attempt {self._get_time_retries}..."
|
|
639
|
+
)
|
|
640
|
+
return None
|
|
641
|
+
|
|
642
|
+
self._log.debug(f"Failed to initialize video time, probably live")
|
|
643
|
+
|
|
629
644
|
self._tracks_manager.set_video_track_id(self.media_input.video.video_track_id)
|
|
630
645
|
self._tracks_manager.set_audio_track_id(self.media_input.video.audio_track_id)
|
|
631
646
|
|
|
632
647
|
return Media(
|
|
633
|
-
length=
|
|
648
|
+
length=length,
|
|
634
649
|
video_tracks=self._tracks_manager.video_tracks,
|
|
635
650
|
audio_tracks=self._tracks_manager.audio_tracks,
|
|
636
651
|
cur_video_track_id=self._tracks_manager.current_video_track_id,
|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "gridplayer"
|
|
7
|
-
version = "0.5.
|
|
7
|
+
version = "0.5.2"
|
|
8
8
|
description = "Play videos side-by-side"
|
|
9
9
|
authors = ["vzhd1701 <vzhd1701@gmail.com>"]
|
|
10
10
|
readme = "README.md"
|
|
@@ -30,19 +30,19 @@ classifiers = [
|
|
|
30
30
|
gridplayer = "gridplayer.__main__:main"
|
|
31
31
|
|
|
32
32
|
[tool.poetry.dependencies]
|
|
33
|
-
python = "^3.8"
|
|
33
|
+
python = "^3.8.1"
|
|
34
34
|
PyQt5 = "5.15.7"
|
|
35
35
|
pydantic = "^1.8.2"
|
|
36
36
|
python-vlc = "3.0.11115"
|
|
37
37
|
pyobjc-core = { version = "*", platform = "darwin" }
|
|
38
38
|
pyobjc-framework-Cocoa = { version = "*", platform = "darwin" }
|
|
39
|
-
streamlink = "
|
|
40
|
-
yt-dlp = "2023.
|
|
39
|
+
streamlink = "6.1.0"
|
|
40
|
+
yt-dlp = "2023.7.6"
|
|
41
41
|
|
|
42
42
|
[tool.poetry.group.dev.dependencies]
|
|
43
43
|
isort = "^5.8.0"
|
|
44
44
|
flakehell = "^0.9.0"
|
|
45
|
-
wemake-python-styleguide = "^0.
|
|
45
|
+
wemake-python-styleguide = "^0.18.0"
|
|
46
46
|
black = "^23.3.0"
|
|
47
47
|
mdformat = "0.7.7"
|
|
48
48
|
pre-commit = "^2.15.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|