Pyckplayer 1.0.10__tar.gz → 1.0.12__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.
- {pyckplayer-1.0.10/src/Pyckplayer.egg-info → pyckplayer-1.0.12}/PKG-INFO +1 -1
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/setup.py +1 -1
- {pyckplayer-1.0.10 → pyckplayer-1.0.12/src/Pyckplayer.egg-info}/PKG-INFO +1 -1
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/core.py +6 -4
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/LICENSE +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/MANIFEST.in +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/README.md +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/pyproject.toml +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/setup.cfg +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/Pyckplayer.egg-info/SOURCES.txt +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/Pyckplayer.egg-info/dependency_links.txt +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/Pyckplayer.egg-info/entry_points.txt +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/Pyckplayer.egg-info/requires.txt +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/Pyckplayer.egg-info/top_level.txt +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/__init__.py +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/LICENSE +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/ckplayer.css +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/ckplayer.ixigua.css +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/ckplayer.red.css +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/images/adclose.png +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/images/buffer.png +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/images/ckplayer.48.png +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/images/ckplayer.png +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/images/ckplayer_ixigua.48.png +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/images/ckplayer_ixigua.png +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/images/ckplayer_red.48.png +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/images/ckplayer_red.png +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/images/favicon.ico +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/images/loading.png +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/images/logo.png +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/images/play.png +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/flv.js/LICENSE +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/flv.js/README.md +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/flv.js/flv.js +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/flv.js/flv.js.map +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/flv.js/flv.min.js +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/flv.js/flv.min.js.map +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/hls.js/LICENSE +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/hls.js/README.md +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/hls.js/hls-demo.js +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/hls.js/hls-demo.js.map +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/hls.js/hls.js +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/hls.js/hls.js.d.ts +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/hls.js/hls.js.map +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/hls.js/hls.light.js +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/hls.js/hls.light.js.map +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/hls.js/hls.light.min.js +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/hls.js/hls.light.min.js.map +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/hls.js/hls.min.js +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/hls.js/hls.min.js.map +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/js/ckplayer.js +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/js/ckplayer.min.js +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/language/en.js +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/language/zh.cn.js +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/language/zh.hk.js +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/mpegts.js/LICENSE +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/mpegts.js/mpegts.js +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/mpegts.js/mpegts.js.map +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/mpegts.js/mpegts.min.js +0 -0
- {pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/cli.py +0 -0
|
@@ -167,9 +167,9 @@ def detect_stream_type(url: str) -> str:
|
|
|
167
167
|
|
|
168
168
|
if '.m3u8' in url_lower or '/hls/' in url_lower:
|
|
169
169
|
return 'hls'
|
|
170
|
-
elif '.flv' in url_lower:
|
|
170
|
+
elif '.flv' in url_lower or 'flv?' in url_lower:
|
|
171
171
|
return 'flv'
|
|
172
|
-
|
|
172
|
+
elif '.ts' in url_lower:
|
|
173
173
|
return 'ts'
|
|
174
174
|
elif '.mp4' in url_lower:
|
|
175
175
|
return 'mp4'
|
|
@@ -188,7 +188,7 @@ def detect_stream_type(url: str) -> str:
|
|
|
188
188
|
elif 'dash' in content_type_lower:
|
|
189
189
|
return 'dash'
|
|
190
190
|
|
|
191
|
-
return '
|
|
191
|
+
return 'flv'
|
|
192
192
|
|
|
193
193
|
|
|
194
194
|
def generate_html(video_url: str,
|
|
@@ -209,6 +209,7 @@ def generate_html(video_url: str,
|
|
|
209
209
|
"autoplay": True,
|
|
210
210
|
"loop": False,
|
|
211
211
|
"preload": "auto",
|
|
212
|
+
"crossOrigin": "anonymous",
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
if stream_type == 'hls':
|
|
@@ -247,6 +248,7 @@ def generate_html(video_url: str,
|
|
|
247
248
|
<head>
|
|
248
249
|
<meta charset="UTF-8">
|
|
249
250
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
251
|
+
<meta name="referrer" content="no-referrer">
|
|
250
252
|
<title>{title}</title>
|
|
251
253
|
<link rel="icon" href="file:///{favicon_path}" type="image/png">
|
|
252
254
|
<link rel="shortcut icon" href="file:///{favicon_path}" type="image/png">
|
|
@@ -335,4 +337,4 @@ def play_video(url: str,
|
|
|
335
337
|
return True
|
|
336
338
|
except Exception:
|
|
337
339
|
pass
|
|
338
|
-
return False
|
|
340
|
+
return False
|
|
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
|
{pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/images/ckplayer_ixigua.48.png
RENAMED
|
File without changes
|
{pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/images/ckplayer_ixigua.png
RENAMED
|
File without changes
|
{pyckplayer-1.0.10 → pyckplayer-1.0.12}/src/pyckplayer/ckplayer/css/images/ckplayer_red.48.png
RENAMED
|
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
|