Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DPlayer无法抓到m3u8.开发者工具抓到的是png图片? #30

Open
wu-ya opened this issue May 8, 2022 · 5 comments
Open

DPlayer无法抓到m3u8.开发者工具抓到的是png图片? #30

wu-ya opened this issue May 8, 2022 · 5 comments

Comments

@wu-ya
Copy link

wu-ya commented May 8, 2022

目前用了1.0.17和1.0.19.都抓不到

这是网页
https://www.btbdys.com/play/21780-0.htm

大佬辛苦了

@xkonglong
Copy link

xkonglong commented May 8, 2022

网页反调试. 一旦按f12就会跳转到百度.

<script>
--
  | var legal = 1;
  | var ptoken = "72C9C8862412DA8123AA41FA72DD0685C459E973DF8D04482E6D5E9904595000F10493AE5F9573239F935C9C69A116DB";
  | var pid = 152814;
  | var time = 1651938783113;
  | var lines = 2;
  | var m3u8 = "https:\/\/www.bde4.cc\/10E79044B82A84F70BE1308FFA5232E42E422F26E0210CF8CC566CDCF56F7E9A72FD93C3600FF3D927F88EA7E9CC584D.m3u8";
  | var m3u8_2 = "https:\/\/www.bde4.cc\/10E79044B82A84F70BE1308FFA5232E4619AD7015606D25AF8058D6C91FAD3A2E806C5630D646EA2C6F570221A94F4D7.m3u8,https:\/\/www.bde4.cc\/10E79044B82A84F70BE1308FFA5232E432BC2311EF96531075D4F11AA8ED23BE09D09F91F3A7406BB413C0F8FB682F66.m3u8,https:\/\/www.bde4.cc\/10E79044B82A84F70BE1308FFA5232E4B04C82F3C0AEE660F20EDEEEBC37360FA75146F8E34900D25547F645480B9F35.m3u8";
  | if (m3u8_2 == '')
  | m3u8_2 = null;
  | if (m3u8_2) m3u8_2.replace(',',',');
  | var subUrl = null;
  | if (m3u8 == '') m3u8 = null;
  | sg = ''
  | var vod_name ="\u800D\u5B9D\u8B66\u63A2", vod_url ="\/xiju\/21780.htm", vod_part ="HD1080P\uFF08\u6CD5\u8BED\uFF09";
  | </script>

@wu-ya
Copy link
Author

wu-ya commented May 8, 2022

那么还有解决办法吗.就是说没办法抓了嘛

@xifangczy
Copy link
Owner

xifangczy commented May 8, 2022

不是播放器的问题,,是网站骚操作。会把m3u8伪装成图片,因为是图片猫抓自然就放过了。ts也会伪装成图片。在猫抓设置里 添加 image 和 png 后缀就能抓到部分。下载后把image或png改成ts
另外切换视频线路 也都会采用不同的方法规避抓取。有的线路会把ts改成没任何后缀...如果没反应切换几条线路试试。

@wu-ya
Copy link
Author

wu-ya commented May 12, 2022

今天更了最新版1.0.20似乎也没办法抓这个网页🤔

@xifangczy
Copy link
Owner

网站会把资源伪装成图片。更新到最新版,设置页面勾选 抓取类型 - image/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants