收米体育在线直播观看_收米体育在线直播观看体育_收米体育在线直播观看欧洲杯

'NoneType' object is not subscriptable
Request Method:
GET
Request URL:
http://dj.leidianzhibo.com/api/play/eyJhbGciOiJIUzUxMiJ9.eyJ0aW1lc3RhbXAiOjE2MzAyNTQzMDQuNDQ4NzQ0NSwidHlwZSI6ImlxaXlpIiwiaWQiOiIzNTcwNTY4In0.bR9D3AbzTOMOydIjKsOPgokf10dCNvzys8-uK0yWiwg_UKjj4yAKsSU5Ea6HTA35hvhFDCzlBQsIVDf13s1snQ/
Django Version:
1.11.11
Exception Type:
TypeError
Exception Value:
'NoneType' object is not subscriptable
Exception Location:
./leidianzhibo/apps/api/views.py in iqiyi, line 39
Python Executable:
/www/wwwroot/leidianzhibo/leidianzhibo_venv/bin/uwsgi
Python Version:
3.7.9
Python Path:
['/www/wwwroot/leidianzhibo/leidianzhibo/apps',
 '.',
 '',
 '/www/server/panel/pyenv/lib/python37.zip',
 '/www/server/panel/pyenv/lib/python3.7',
 '/www/server/panel/pyenv/lib/python3.7/lib-dynload',
 '/www/wwwroot/leidianzhibo/leidianzhibo_venv/lib/python3.7/site-packages']
Server time:
星期五, 22 十月 2021 11:37:52 +0800

Traceback Switch to copy-and-paste view

  • /www/wwwroot/leidianzhibo/leidianzhibo_venv/lib/python3.7/site-packages/django/core/handlers/exception.py in inner
    1.     This decorator is automatically applied to all middleware to ensure that
    2.     no middleware leaks an exception and that the next middleware in the stack
    3.     can rely on getting a response instead of an exception.
    4.     """
    5.     @wraps(get_response, assigned=available_attrs(get_response))
    6.     def inner(request):
    7.         try:
    1.             response = get_response(request)
      ...
    1.         except Exception as exc:
    2.             response = response_for_exception(request, exc)
    3.         return response
    4.     return inner
    Variable Value
    exc
    TypeError("'NoneType' object is not subscriptable")
    get_response
    <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f3f3ebc1390>>
    request
    <WSGIRequest: GET '/api/play/eyJhbGciOiJIUzUxMiJ9.eyJ0aW1lc3RhbXAiOjE2MzAyNTQzMDQuNDQ4NzQ0NSwidHlwZSI6ImlxaXlpIiwiaWQiOiIzNTcwNTY4In0.bR9D3AbzTOMOydIjKsOPgokf10dCNvzys8-uK0yWiwg_UKjj4yAKsSU5Ea6HTA35hvhFDCzlBQsIVDf13s1snQ/'>
  • /www/wwwroot/leidianzhibo/leidianzhibo_venv/lib/python3.7/site-packages/django/core/handlers/base.py in _get_response
    1.                 break
    2.         if response is None:
    3.             wrapped_callback = self.make_view_atomic(callback)
    4.             try:
    5.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
    6.             except Exception as e:
    1.                 response = self.process_exception_by_middleware(e, request)
      ...
    1.         # Complain if the view returned None (a common error).
    2.         if response is None:
    3.             if isinstance(callback, types.FunctionType):    # FBV
    4.                 view_name = callback.__name__
    5.             else:                                           # CBV
    Variable Value
    callback
    <function ApiPlayView at 0x7f3f3c7c2c20>
    callback_args
    ()
    callback_kwargs
    {'dict_token': 'eyJhbGciOiJIUzUxMiJ9.eyJ0aW1lc3RhbXAiOjE2MzAyNTQzMDQuNDQ4NzQ0NSwidHlwZSI6ImlxaXlpIiwiaWQiOiIzNTcwNTY4In0.bR9D3AbzTOMOydIjKsOPgokf10dCNvzys8-uK0yWiwg_UKjj4yAKsSU5Ea6HTA35hvhFDCzlBQsIVDf13s1snQ'}
    middleware_method
    <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f3f3ebdb690>>
    request
    <WSGIRequest: GET '/api/play/eyJhbGciOiJIUzUxMiJ9.eyJ0aW1lc3RhbXAiOjE2MzAyNTQzMDQuNDQ4NzQ0NSwidHlwZSI6ImlxaXlpIiwiaWQiOiIzNTcwNTY4In0.bR9D3AbzTOMOydIjKsOPgokf10dCNvzys8-uK0yWiwg_UKjj4yAKsSU5Ea6HTA35hvhFDCzlBQsIVDf13s1snQ/'>
    resolver
    <RegexURLResolver 'leidianzhibo.urls' (None:None) ^/>
    resolver_match
    ResolverMatch(func=leidianzhibo.apps.api.views.ApiPlayView, args=(), kwargs={'dict_token': 'eyJhbGciOiJIUzUxMiJ9.eyJ0aW1lc3RhbXAiOjE2MzAyNTQzMDQuNDQ4NzQ0NSwidHlwZSI6ImlxaXlpIiwiaWQiOiIzNTcwNTY4In0.bR9D3AbzTOMOydIjKsOPgokf10dCNvzys8-uK0yWiwg_UKjj4yAKsSU5Ea6HTA35hvhFDCzlBQsIVDf13s1snQ'}, url_name=None, app_names=[], namespaces=[])
    response
    None
    self
    <django.core.handlers.wsgi.WSGIHandler object at 0x7f3f3ebc1390>
    wrapped_callback
    <function ApiPlayView at 0x7f3f3c7c2c20>
  • /www/wwwroot/leidianzhibo/leidianzhibo_venv/lib/python3.7/site-packages/django/core/handlers/base.py in _get_response
    1.             response = middleware_method(request, callback, callback_args, callback_kwargs)
    2.             if response:
    3.                 break
    4.         if response is None:
    5.             wrapped_callback = self.make_view_atomic(callback)
    6.             try:
    1.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
      ...
    1.             except Exception as e:
    2.                 response = self.process_exception_by_middleware(e, request)
    3.         # Complain if the view returned None (a common error).
    4.         if response is None:
    5.             if isinstance(callback, types.FunctionType):    # FBV
    Variable Value
    callback
    <function ApiPlayView at 0x7f3f3c7c2c20>
    callback_args
    ()
    callback_kwargs
    {'dict_token': 'eyJhbGciOiJIUzUxMiJ9.eyJ0aW1lc3RhbXAiOjE2MzAyNTQzMDQuNDQ4NzQ0NSwidHlwZSI6ImlxaXlpIiwiaWQiOiIzNTcwNTY4In0.bR9D3AbzTOMOydIjKsOPgokf10dCNvzys8-uK0yWiwg_UKjj4yAKsSU5Ea6HTA35hvhFDCzlBQsIVDf13s1snQ'}
    middleware_method
    <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f3f3ebdb690>>
    request
    <WSGIRequest: GET '/api/play/eyJhbGciOiJIUzUxMiJ9.eyJ0aW1lc3RhbXAiOjE2MzAyNTQzMDQuNDQ4NzQ0NSwidHlwZSI6ImlxaXlpIiwiaWQiOiIzNTcwNTY4In0.bR9D3AbzTOMOydIjKsOPgokf10dCNvzys8-uK0yWiwg_UKjj4yAKsSU5Ea6HTA35hvhFDCzlBQsIVDf13s1snQ/'>
    resolver
    <RegexURLResolver 'leidianzhibo.urls' (None:None) ^/>
    resolver_match
    ResolverMatch(func=leidianzhibo.apps.api.views.ApiPlayView, args=(), kwargs={'dict_token': 'eyJhbGciOiJIUzUxMiJ9.eyJ0aW1lc3RhbXAiOjE2MzAyNTQzMDQuNDQ4NzQ0NSwidHlwZSI6ImlxaXlpIiwiaWQiOiIzNTcwNTY4In0.bR9D3AbzTOMOydIjKsOPgokf10dCNvzys8-uK0yWiwg_UKjj4yAKsSU5Ea6HTA35hvhFDCzlBQsIVDf13s1snQ'}, url_name=None, app_names=[], namespaces=[])
    response
    None
    self
    <django.core.handlers.wsgi.WSGIHandler object at 0x7f3f3ebc1390>
    wrapped_callback
    <function ApiPlayView at 0x7f3f3c7c2c20>
  • /www/wwwroot/leidianzhibo/leidianzhibo_venv/lib/python3.7/site-packages/django/views/generic/base.py in view
    1.         def view(request, *args, **kwargs):
    2.             self = cls(**initkwargs)
    3.             if hasattr(self, 'get') and not hasattr(self, 'head'):
    4.                 self.head = self.get
    5.             self.request = request
    6.             self.args = args
    7.             self.kwargs = kwargs
    1.             return self.dispatch(request, *args, **kwargs)
      ...
    1.         view.view_class = cls
    2.         view.view_initkwargs = initkwargs
    3.         # take name and docstring from class
    4.         update_wrapper(view, cls, updated=())
    Variable Value
    args
    ()
    cls
    <class 'leidianzhibo.apps.api.views.ApiPlayView'>
    initkwargs
    {}
    kwargs
    {'dict_token': 'eyJhbGciOiJIUzUxMiJ9.eyJ0aW1lc3RhbXAiOjE2MzAyNTQzMDQuNDQ4NzQ0NSwidHlwZSI6ImlxaXlpIiwiaWQiOiIzNTcwNTY4In0.bR9D3AbzTOMOydIjKsOPgokf10dCNvzys8-uK0yWiwg_UKjj4yAKsSU5Ea6HTA35hvhFDCzlBQsIVDf13s1snQ'}
    request
    <WSGIRequest: GET '/api/play/eyJhbGciOiJIUzUxMiJ9.eyJ0aW1lc3RhbXAiOjE2MzAyNTQzMDQuNDQ4NzQ0NSwidHlwZSI6ImlxaXlpIiwiaWQiOiIzNTcwNTY4In0.bR9D3AbzTOMOydIjKsOPgokf10dCNvzys8-uK0yWiwg_UKjj4yAKsSU5Ea6HTA35hvhFDCzlBQsIVDf13s1snQ/'>
    self
    <leidianzhibo.apps.api.views.ApiPlayView object at 0x7f3f375eb990>
  • /www/wwwroot/leidianzhibo/leidianzhibo_venv/lib/python3.7/site-packages/django/views/generic/base.py in dispatch
    1.         # Try to dispatch to the right method; if a method doesn't exist,
    2.         # defer to the error handler. Also defer to the error handler if the
    3.         # request method isn't on the approved list.
    4.         if request.method.lower() in self.http_method_names:
    5.             handler = getattr(self, request.method.lower(), self.http_method_not_allowed)
    6.         else:
    7.             handler = self.http_method_not_allowed
    1.         return handler(request, *args, **kwargs)
      ...
    1.     def http_method_not_allowed(self, request, *args, **kwargs):
    2.         logger.warning(
    3.             'Method Not Allowed (%s): %s', request.method, request.path,
    4.             extra={'status_code': 405, 'request': request}
    5.         )
    Variable Value
    args
    ()
    handler
    <bound method ApiPlayView.get of <leidianzhibo.apps.api.views.ApiPlayView object at 0x7f3f375eb990>>
    kwargs
    {'dict_token': 'eyJhbGciOiJIUzUxMiJ9.eyJ0aW1lc3RhbXAiOjE2MzAyNTQzMDQuNDQ4NzQ0NSwidHlwZSI6ImlxaXlpIiwiaWQiOiIzNTcwNTY4In0.bR9D3AbzTOMOydIjKsOPgokf10dCNvzys8-uK0yWiwg_UKjj4yAKsSU5Ea6HTA35hvhFDCzlBQsIVDf13s1snQ'}
    request
    <WSGIRequest: GET '/api/play/eyJhbGciOiJIUzUxMiJ9.eyJ0aW1lc3RhbXAiOjE2MzAyNTQzMDQuNDQ4NzQ0NSwidHlwZSI6ImlxaXlpIiwiaWQiOiIzNTcwNTY4In0.bR9D3AbzTOMOydIjKsOPgokf10dCNvzys8-uK0yWiwg_UKjj4yAKsSU5Ea6HTA35hvhFDCzlBQsIVDf13s1snQ/'>
    self
    <leidianzhibo.apps.api.views.ApiPlayView object at 0x7f3f375eb990>
  • ./leidianzhibo/apps/api/views.py in get
    1. class ApiPlayView(View):
    2.     def get(self,request,dict_token):
    3.         # dict_token = {"type":"kqiu","id":"id","timestamp":time.time()}
    4.         dict_data = var.down_token(dict_token)
    5.         if dict_data['type'] == 'wangzhe':
    6.             m3u8 = dict_data['id']
    7.         else:
    1.             m3u8 = api_play(dict_data['type'],str(dict_data['id']))
      ...
    1.         if dict_data['type'] == 'kqiu' or dict_data['type'] == 'iqiyi' or dict_data['type'] == 'sina' or dict_data['type'] == 'wangzhe' or dict_data['type'] == 'lehu':
    2.             host = var.ali_host
    3.         elif dict_data['type'] == 'migu':
    4.             host = var.ck_host
    5.         elif dict_data['type'] == 'zhibotv':
    6.             host = var.vjs_host
    Variable Value
    dict_data
    {'id': '3570568', 'timestamp': 1630254304.4487445, 'type': 'iqiyi'}
    dict_token
    'eyJhbGciOiJIUzUxMiJ9.eyJ0aW1lc3RhbXAiOjE2MzAyNTQzMDQuNDQ4NzQ0NSwidHlwZSI6ImlxaXlpIiwiaWQiOiIzNTcwNTY4In0.bR9D3AbzTOMOydIjKsOPgokf10dCNvzys8-uK0yWiwg_UKjj4yAKsSU5Ea6HTA35hvhFDCzlBQsIVDf13s1snQ'
    request
    <WSGIRequest: GET '/api/play/eyJhbGciOiJIUzUxMiJ9.eyJ0aW1lc3RhbXAiOjE2MzAyNTQzMDQuNDQ4NzQ0NSwidHlwZSI6ImlxaXlpIiwiaWQiOiIzNTcwNTY4In0.bR9D3AbzTOMOydIjKsOPgokf10dCNvzys8-uK0yWiwg_UKjj4yAKsSU5Ea6HTA35hvhFDCzlBQsIVDf13s1snQ/'>
    self
    <leidianzhibo.apps.api.views.ApiPlayView object at 0x7f3f375eb990>
  • ./leidianzhibo/apps/api/views.py in api_play
    1.         link_dict[k_id] = {"link": m3u8, "timestamp": time.time()}
    2.         contents_list.append(link_dict)
    3.     else:
    4.         for i,id_dict in enumerate(contents_list): # i 是列表的下标
    5.             for k, v in id_dict.items():
    6.                 if k == k_id:
    7.                     if time.time() > v['timestamp'] + stop_time:
    1.                         m3u8, rtmp = if_type(k_id)
      ...
    1.                         contents_list[i] = {k_id:{"link": m3u8, "timestamp": time.time()}}
    2.                     else:
    3.                         m3u8 = id_dict[k]['link']
    4.     var.write_api_id_data(contents_list)
    5.     return m3u8
    Variable Value
    contents
    ("[{'kqiu_70003435953': {'link': "
     "'http://in.winpowerdata.com.cn/wpdt/out16live.m3u8', 'timestamp': "
     "1634551268.0260835}}, {'kqiu_70003528730': {'link': "
     "'http://live.kqiulive.com/live/out7live.m3u8', 'timestamp': "
     "1634021273.4286282}}, {'kqiu_70003528731': {'link': "
     "'http://in.winpowerdata.com.cn/wpdt/out1live.m3u8', 'timestamp': "
     "1634543388.439399}}, {'kqiu_70003562176': {'link': "
     "'http://live.kqiulive.com/live/out2live.m3u8', 'timestamp': "
     "1634021299.174494}}, {'kqiu_70003562179': {'link': "
     "'http://live.kqiulive.com/live/out1live.m3u8', 'timestamp': "
     "1634021309.4320815}}, {'iqiyi_3439285': {'link': '', 'timestamp': "
     "1634656574.5133336}}, {'iqiyi_3499380': {'link': '', 'timestamp': "
     "1634021601.1676724}}, {'kqiu_70003406765': {'link': "
     "'http://in.winpowerdata.com.cn/wpdt/out7live.m3u8', 'timestamp': "
     "1634632531.890524}}, {'iqiyi_3527284': {'link': '', 'timestamp': "
     "1634608017.4407656}}, {'iqiyi_2785878': {'link': '', 'timestamp': "
     "1634573802.5177405}}, {'migu_708930253': {'link': 'None', 'timestamp': "
     "1634023758.1166751}}, {'iqiyi_1900001157': {'link': "
     "'https://hlslive.video.iqiyi.com/tslive/c63_ssports_20211012_eclauihx_720p_t6/c63_ssports_20211012_eclauihx_720p_t6.m3u8?pv=0.2&qd_uid=17951465&qd_vip=0&qd_vipres=0&qd_src=sspt&qd_tm=1634024521000&qd_p=2bfed924&qd_k=&qd_sc=7f7546978deff954ee7e0e84ba09b27d', "
     "'timestamp': 1634024521.3802233}}, {'lehu_43391': {'link': 'none', "
     "'timestamp': 1634420479.4395525}}, {'kqiu_70003544953': {'link': "
     "'http://in.winpowerdata.com.cn/wpdt/out4live.m3u8', 'timestamp': "
     "1634857361.780664}}, {'kqiu_70003487546': {'link': "
     "'http://in.winpowerdata.com.cn/wpdt/out12live.m3u8', 'timestamp': "
     "1634495718.404311}}, {'iqiyi_3625069': {'link': "
     "'https://wjtry.ssports.com/live/try20_xinying720.m3u8', 'timestamp': "
     "1634025168.6738417}}, {'kqiu_70003496921': {'link': "
     "'http://in.winpowerdata.com.cn/wpdt/out6live.m3u8', 'timestamp': "
     "1634671653.5286312}}, {'kqiu_70003498235': {'link': "
     "'http://in.winpowerdata.com.cn/wpdt/out11live.m3u8', 'timestamp': "
     "1634796238.645102}}, {'kqiu_70003435819': {'link': "
     "'http://in.winpowerdata.com.cn/wpdt/out7live.m3u8', 'timestamp': "
     "1634521871.0167363}}, {'kqiu_70003546865': {'link': "
     "'http://live.winpowerdata.com.cn/wpdtA/A1.m3u8', 'timestamp': "
     "1634026584.9836724}}, {'kqiu_70003498508': {'link': "
     "'http://in.winpowerdata.com.cn/wpdt/out3live.m3u8', 'timestamp': "
     "1634026702.087287}}, {'kqiu_70003496706': {'link': "
     "'http://live.winpowerdata.com.cn/wpdtJ1/J1-2.m3u8', 'timestamp': "
     "1634711636.8045013}}, {'kqiu_70003490636': {'link': "
     "'http://in.winpowerdata.com.cn/wpdt/out3live.m3u8', 'timestamp': "
     "1634669969.4057858}}, {'kqiu_70003500410': {'link': "
     "'http://live.kqiulive.com/live/out8live.m3u8', 'timestamp': "
     "1634028266.2472665}}, {'iqiyi_2785883': {'link': '', 'timestamp': "
     "1634028371.458235}}, {'kqiu_70003436008': {'link': "
     "'http://in.winpowerdata.com.cn/wpdt/out9live.m3u8', 'timestamp': "
     "1634531676.3655665}}, {'kqiu_70003503753': {'link': "
     "'http://in.winpowerdata.com.cn/wpdt/out1live.m3u8', 'timestamp': "
     "1634548642.4456296}}, {'kqiu_70003502011': {'link': "
     "'http://live.kqiulive.com/live/out2live.m3u8', 'timestamp': "
     "1634550391.3803205}}, {'kqiu_70003444002': {'link': "
     "'http://in.winpowerdata.com.cn/wpdt/out8live.m3u8', 'timestamp': "
     "1634539923.0852394}}, {'iqiyi_3527271': {'link': '', 'timestamp': "
     "1634568361.422584}}, {'migu_700145015': {'link': 'None', 'timestamp': "
     "1634551519.2986157}}, {'migu_715983484': {'link': 'None', 'timestamp': "
     "1634030032.6869469}}, {'iqiyi_3582317': {'link': "
     "'https://wjtry.ssports.com/live/try20_xinying720.m3u8', 'timestamp': "
     "1634030920.418042}}, {'kqiu_70003409831': {'link': "
     "'http://in.winpowerdata.com.cn/wpdt/out10live.m3u8', 'timestamp': "
     "1634718084.1948197}}, {'kqiu_70003601443': {'link': "
     "'http://live.kqiulive.com/live/out1live.m3u8', 'timestamp': "
     "1634031875.4013157}}, {'iqiyi_3544909': {'link': '', 'timestamp': "
     "1634031996.5630295}}, {'kqiu_700034... <trimmed 274843 bytes string>
    contents_list
    [{'kqiu_70003435953': {'link': 'http://in.winpowerdata.com.cn/wpdt/out16live.m3u8',
                           'timestamp': 1634551268.0260835}},
     {'kqiu_70003528730': {'link': 'http://live.kqiulive.com/live/out7live.m3u8',
                           'timestamp': 1634021273.4286282}},
     {'kqiu_70003528731': {'link': 'http://in.winpowerdata.com.cn/wpdt/out1live.m3u8',
                           'timestamp': 1634543388.439399}},
     {'kqiu_70003562176': {'link': 'http://live.kqiulive.com/live/out2live.m3u8',
                           'timestamp': 1634021299.174494}},
     {'kqiu_70003562179': {'link': 'http://live.kqiulive.com/live/out1live.m3u8',
                           'timestamp': 1634021309.4320815}},
     {'iqiyi_3439285': {'link': '', 'timestamp': 1634656574.5133336}},
     {'iqiyi_3499380': {'link': '', 'timestamp': 1634021601.1676724}},
     {'kqiu_70003406765': {'link': 'http://in.winpowerdata.com.cn/wpdt/out7live.m3u8',
                           'timestamp': 1634632531.890524}},
     {'iqiyi_3527284': {'link': '', 'timestamp': 1634608017.4407656}},
     {'iqiyi_2785878': {'link': '', 'timestamp': 1634573802.5177405}},
     {'migu_708930253': {'link': 'None', 'timestamp': 1634023758.1166751}},
     {'iqiyi_1900001157': {'link': 'https://hlslive.video.iqiyi.com/tslive/c63_ssports_20211012_eclauihx_720p_t6/c63_ssports_20211012_eclauihx_720p_t6.m3u8?pv=0.2&qd_uid=17951465&qd_vip=0&qd_vipres=0&qd_src=sspt&qd_tm=1634024521000&qd_p=2bfed924&qd_k=&qd_sc=7f7546978deff954ee7e0e84ba09b27d',
                           'timestamp': 1634024521.3802233}},
     {'lehu_43391': {'link': 'none', 'timestamp': 1634420479.4395525}},
     {'kqiu_70003544953': {'link': 'http://in.winpowerdata.com.cn/wpdt/out4live.m3u8',
                           'timestamp': 1634857361.780664}},
     {'kqiu_70003487546': {'link': 'http://in.winpowerdata.com.cn/wpdt/out12live.m3u8',
                           'timestamp': 1634495718.404311}},
     {'iqiyi_3625069': {'link': 'https://wjtry.ssports.com/live/try20_xinying720.m3u8',
                        'timestamp': 1634025168.6738417}},
     {'kqiu_70003496921': {'link': 'http://in.winpowerdata.com.cn/wpdt/out6live.m3u8',
                           'timestamp': 1634671653.5286312}},
     {'kqiu_70003498235': {'link': 'http://in.winpowerdata.com.cn/wpdt/out11live.m3u8',
                           'timestamp': 1634796238.645102}},
     {'kqiu_70003435819': {'link': 'http://in.winpowerdata.com.cn/wpdt/out7live.m3u8',
                           'timestamp': 1634521871.0167363}},
     {'kqiu_70003546865': {'link': 'http://live.winpowerdata.com.cn/wpdtA/A1.m3u8',
                           'timestamp': 1634026584.9836724}},
     {'kqiu_70003498508': {'link': 'http://in.winpowerdata.com.cn/wpdt/out3live.m3u8',
                           'timestamp': 1634026702.087287}},
     {'kqiu_70003496706': {'link': 'http://live.winpowerdata.com.cn/wpdtJ1/J1-2.m3u8',
                           'timestamp': 1634711636.8045013}},
     {'kqiu_70003490636': {'link': 'http://in.winpowerdata.com.cn/wpdt/out3live.m3u8',
                           'timestamp': 1634669969.4057858}},
     {'kqiu_70003500410': {'link': 'http://live.kqiulive.com/live/out8live.m3u8',
                           'timestamp': 1634028266.2472665}},
     {'iqiyi_2785883': {'link': '', 'timestamp': 1634028371.458235}},
     {'kqiu_70003436008': {'link': 'http://in.winpowerdata.com.cn/wpdt/out9live.m3u8',
                           'timestamp': 1634531676.3655665}},
     {'kqiu_70003503753': {'link': 'http://in.winpowerdata.com.cn/wpdt/out1live.m3u8',
                           'timestamp': 1634548642.4456296}},
     {'kqiu_70003502011': {'link': 'http://live.kqiulive.com/live/out2live.m3u8',
                           'timestamp': 1634550391.3803205}},
     {'kqiu_70003444002': {'link': 'http://in.winpowerdata.com.cn/wpdt/out8live.m3u8',
                           'timestamp': 1634539923.0852394}},
     {'iqiyi_3527271': {'link': '', 'timestamp': 1634568361.422584}},
     {'migu_700145015': {'link': 'None', 'timestamp': 1634551519.2986157}},
     {'migu_715983484': {'link': 'None', 'timestamp': 1634030032.6869469}},
     {'iqiyi_3582317': {'link': 'https://wjtry.ssports.com/live/try20_xinying720.m3u8',
                        'timestamp': 1634030920.418042}},
    ... <trimmed 297835 bytes string>
    file_path
    '/www/wwwroot/leidianzhibo/html/jsondata/all_id_live.txt'
    i
    2608
    id
    '3570568'
    id_dict
    {'iqiyi_3570568': {'link': 'https://wjtry.ssports.com/live/try20_xinying1080.m3u8',
                       'timestamp': 1634839452.091172}}
    k
    'iqiyi_3570568'
    k_id
    'iqiyi_3570568'
    stop_time
    1200
    type
    'iqiyi'
    v
    {'link': 'https://wjtry.ssports.com/live/try20_xinying1080.m3u8',
     'timestamp': 1634839452.091172}
  • ./leidianzhibo/apps/api/views.py in if_type
    1. def if_type(tid):
    2.     tid_list = tid.split('_')
    3.     if tid_list[0] == 'kqiu':
    4.         m3u8, rtmp = kqiu(tid_list[1])
    5.     elif tid_list[0] == 'migu':
    6.         m3u8, rtmp = migu(tid_list[1])
    7.     elif tid_list[0] == 'iqiyi':
    1.         m3u8, rtmp = iqiyi(tid_list[1])
      ...
    1.     elif tid_list[0] == 'sina':
    2.         m3u8, rtmp = sina(tid_list[1])
    3.     elif tid_list[0] == 'zhibotv':
    4.         m3u8, rtmp = zhibotv(tid_list[1])
    5.     elif tid_list[0] == 'lehu':
    6.         m3u8, rtmp = lehu(tid_list[1])
    Variable Value
    tid
    'iqiyi_3570568'
    tid_list
    ['iqiyi', '3570568']
  • ./leidianzhibo/apps/api/views.py in iqiyi
    1.     # 17955079 自己的ID
    2.     url = 'http://security.ssports.com/api/channel/v5/watchMatch/match/' + id + '/device/H5?userId=' + random.choice(
    3.         user_list)
    4.     #http://62.234.128.196:8001/iqiyi/3439031/17951015/
    5.     m3u8_url = requests.get(url,headers=var.pc_headers, verify=False).json()['data']['defaultKey']
    6.     if len(m3u8_url) < 150:
    7.         url_b = 'http://62.234.128.196:8001/iqiyi/'+id+'/'+random.choice(user_list)+'/'
    1.         m3u8_url = requests.get(url_b).json()['retData']['defaultKey']
      ...
    1.     return m3u8_url,m3u8_url
    2. def sina(id):
    3.     url = 'http://api.ivideo.sina.com.cn/public/live/play?appname=sinaplayer_pc&appver=1&applt=web&program_token=' + id + '&ran=' + str(
    4.         int(time.time() * 1000))
    5.     contents = requests.get(url,headers=var.pc_headers).json()['data']['streams']
    6.     rtmp = contents[0]['address']
    Variable Value
    id
    '3570568'
    m3u8_url
    'https://wjtry.ssports.com/live/try20_xinying1080.m3u8'
    url
    'http://security.ssports.com/api/channel/v5/watchMatch/match/3570568/device/H5?userId=17951657'
    url_b
    'http://62.234.128.196:8001/iqiyi/3570568/17951449/'
    user_list
    ['17951015',
     '17951075',
     '17951159',
     '17951189',
     '17951220',
     '17951251',
     '17951281',
     '17951421',
     '17951449',
     '17951465',
     '17951579',
     '17951625',
     '17951657',
     '17951677',
     '17951691',
     '17951823',
     '17952051',
     '17952340',
     '17952386',
     '17952493',
     '17952518',
     '17952534',
     '17952642',
     '17952795',
     '17952839',
     '17953085',
     '17953109',
     '17953162',
     '17953367',
     '17953378',
     '17953494',
     '17953533',
     '17953851',
     '17953902',
     '17953909',
     '17954052',
     '17954256',
     '17954768']


  • Request information

    USER

    AnonymousUser

    GET

    No GET data

    POST

    No POST data

    FILES

    No FILES data

    No cookie data

    META

    Variable Value
    HTTP_ACCEPT
    '*/*'
    HTTP_ACCEPT_ENCODING
    'deflate, gzip'
    HTTP_CONNECTION
    'close'
    HTTP_HOST
    'dj.leidianzhibo.com'
    HTTP_REMOTE_HOST
    '154.88.70.238'
    HTTP_USER_AGENT
    'Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)'
    HTTP_X_FORWARDED_FOR
    '154.88.70.238'
    HTTP_X_REAL_IP
    '154.88.70.238'
    PATH_INFO
    '/api/play/eyJhbGciOiJIUzUxMiJ9.eyJ0aW1lc3RhbXAiOjE2MzAyNTQzMDQuNDQ4NzQ0NSwidHlwZSI6ImlxaXlpIiwiaWQiOiIzNTcwNTY4In0.bR9D3AbzTOMOydIjKsOPgokf10dCNvzys8-uK0yWiwg_UKjj4yAKsSU5Ea6HTA35hvhFDCzlBQsIVDf13s1snQ/'
    QUERY_STRING
    ''
    REMOTE_ADDR
    '127.0.0.1'
    REMOTE_PORT
    '27878'
    REQUEST_METHOD
    'GET'
    REQUEST_URI
    '/api/play/eyJhbGciOiJIUzUxMiJ9.eyJ0aW1lc3RhbXAiOjE2MzAyNTQzMDQuNDQ4NzQ0NSwidHlwZSI6ImlxaXlpIiwiaWQiOiIzNTcwNTY4In0.bR9D3AbzTOMOydIjKsOPgokf10dCNvzys8-uK0yWiwg_UKjj4yAKsSU5Ea6HTA35hvhFDCzlBQsIVDf13s1snQ/'
    SCRIPT_NAME
    ''
    SERVER_NAME
    'XS4325421736'
    SERVER_PORT
    '8002'
    SERVER_PROTOCOL
    'HTTP/1.0'
    UWSGI_ROUTER
    'http'
    uwsgi.core
    0
    uwsgi.node
    b'XS4325421736'
    uwsgi.version
    b'2.0.18'
    wsgi.errors
    <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'>
    wsgi.file_wrapper
    ''
    wsgi.input
    <uwsgi._Input object at 0x7f3f37b27170>
    wsgi.multiprocess
    False
    wsgi.multithread
    True
    wsgi.run_once
    False
    wsgi.url_scheme
    'http'
    wsgi.version
    (1, 0)

    Settings

    Using settings module leidianzhibo.settings

    Setting Value
    ABSOLUTE_URL_OVERRIDES
    {}
    ADMINS
    []
    ALLOWED_HOSTS
    ['www.leidianzhibo.com', 'dj.leidianzhibo.com']
    APPEND_SLASH
    True
    AUTHENTICATION_BACKENDS
    ['django.contrib.auth.backends.ModelBackend']
    AUTH_PASSWORD_VALIDATORS
    '********************'
    AUTH_USER_MODEL
    'auth.User'
    BASE_DIR
    '/www/wwwroot/leidianzhibo'
    CACHES
    {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
    CACHE_MIDDLEWARE_ALIAS
    'default'
    CACHE_MIDDLEWARE_KEY_PREFIX
    '********************'
    CACHE_MIDDLEWARE_SECONDS
    600
    CRONJOBS
    [('*/5 * * * *', 'zhibo.views.make_index_html', '>>/www/wwwlogs/cronindex.log'),
     ('*/25 * * * *',
      'zhibo.views.AutoAllLiveData',
      '>>/www/wwwlogs/cronmliveindex.log'),
     ('* */3 * * *',
      'contents.views.conr_make_all_data_html',
      '>>/www/wwwlogs/cronalldata.log'),
     ('*/30 * * * *',
      'contents.views.auto_zhibo8_video',
      '>>/www/wwwlogs/makezhibo8video.log'),
     ('*/55 * * * *',
      'contents.views.autovideolist',
      '>>/www/wwwlogs/makezhibo8video.log'),
     ('*/40 * * * *',
      'cntv_video.views.conr_make_all_cntvvideo_html',
      '>>/www/wwwlogs/cntvvideo.log'),
     ('* */2 * * *',
      'contents.views.AutoSinaNewsView',
      '>>/www/wwwlogs/cntvvideo.log')]
    CSRF_COOKIE_AGE
    31449600
    CSRF_COOKIE_DOMAIN
    None
    CSRF_COOKIE_HTTPONLY
    False
    CSRF_COOKIE_NAME
    'csrftoken'
    CSRF_COOKIE_PATH
    '/'
    CSRF_COOKIE_SECURE
    False
    CSRF_FAILURE_VIEW
    'django.views.csrf.csrf_failure'
    CSRF_HEADER_NAME
    'HTTP_X_CSRFTOKEN'
    CSRF_TRUSTED_ORIGINS
    []
    CSRF_USE_SESSIONS
    False
    DATABASES
    {'default': {'ATOMIC_REQUESTS': False,
                 'AUTOCOMMIT': True,
                 'CONN_MAX_AGE': 0,
                 'ENGINE': 'django.db.backends.mysql',
                 'HOST': '127.0.0.1',
                 'NAME': 'leidianzhibo',
                 'OPTIONS': {},
                 'PASSWORD': '********************',
                 'PORT': '3306',
                 'TEST': {'CHARSET': None,
                          'COLLATION': None,
                          'MIRROR': None,
                          'NAME': None},
                 'TIME_ZONE': None,
                 'USER': 'leidianzhibo',
                 'charset': 'utf8mb4',
                 'options': {'charset': 'utf8mb4'}}}
    DATABASE_ROUTERS
    []
    DATA_UPLOAD_MAX_MEMORY_SIZE
    2621440
    DATA_UPLOAD_MAX_NUMBER_FIELDS
    1000
    DATETIME_FORMAT
    'N j, Y, P'
    DATETIME_INPUT_FORMATS
    ['%Y-%m-%d %H:%M:%S',
     '%Y-%m-%d %H:%M:%S.%f',
     '%Y-%m-%d %H:%M',
     '%Y-%m-%d',
     '%m/%d/%Y %H:%M:%S',
     '%m/%d/%Y %H:%M:%S.%f',
     '%m/%d/%Y %H:%M',
     '%m/%d/%Y',
     '%m/%d/%y %H:%M:%S',
     '%m/%d/%y %H:%M:%S.%f',
     '%m/%d/%y %H:%M',
     '%m/%d/%y']
    DATE_FORMAT
    'N j, Y'
    DATE_INPUT_FORMATS
    ['%Y-%m-%d',
     '%m/%d/%Y',
     '%m/%d/%y',
     '%b %d %Y',
     '%b %d, %Y',
     '%d %b %Y',
     '%d %b, %Y',
     '%B %d %Y',
     '%B %d, %Y',
     '%d %B %Y',
     '%d %B, %Y']
    DEBUG
    True
    DEBUG_PROPAGATE_EXCEPTIONS
    False
    DECIMAL_SEPARATOR
    '.'
    DEFAULT_CHARSET
    'utf-8'
    DEFAULT_CONTENT_TYPE
    'text/html'
    DEFAULT_EXCEPTION_REPORTER_FILTER
    'django.views.debug.SafeExceptionReporterFilter'
    DEFAULT_FILE_STORAGE
    'django.core.files.storage.FileSystemStorage'
    DEFAULT_FROM_EMAIL
    'webmaster@localhost'
    DEFAULT_INDEX_TABLESPACE
    ''
    DEFAULT_TABLESPACE
    ''
    DISALLOWED_USER_AGENTS
    []
    EMAIL_BACKEND
    'django.core.mail.backends.smtp.EmailBackend'
    EMAIL_HOST
    'localhost'
    EMAIL_HOST_PASSWORD
    '********************'
    EMAIL_HOST_USER
    ''
    EMAIL_PORT
    25
    EMAIL_SSL_CERTFILE
    None
    EMAIL_SSL_KEYFILE
    '********************'
    EMAIL_SUBJECT_PREFIX
    '[Django] '
    EMAIL_TIMEOUT
    None
    EMAIL_USE_LOCALTIME
    False
    EMAIL_USE_SSL
    False
    EMAIL_USE_TLS
    False
    FILE_CHARSET
    'utf-8'
    FILE_UPLOAD_DIRECTORY_PERMISSIONS
    None
    FILE_UPLOAD_HANDLERS
    ['django.core.files.uploadhandler.MemoryFileUploadHandler',
     'django.core.files.uploadhandler.TemporaryFileUploadHandler']
    FILE_UPLOAD_MAX_MEMORY_SIZE
    2621440
    FILE_UPLOAD_PERMISSIONS
    None
    FILE_UPLOAD_TEMP_DIR
    None
    FIRST_DAY_OF_WEEK
    0
    FIXTURE_DIRS
    []
    FORCE_SCRIPT_NAME
    None
    FORMAT_MODULE_PATH
    None
    FORM_RENDERER
    'django.forms.renderers.DjangoTemplates'
    IGNORABLE_404_URLS
    []
    INSTALLED_APPS
    ['django.contrib.admin',
     'django.contrib.auth',
     'django.contrib.contenttypes',
     'django.contrib.sessions',
     'django.contrib.messages',
     'django.contrib.staticfiles',
     'DjangoUeditor',
     'zhibo.apps.ZhiboConfig',
     'alltype.apps.AlltypeConfig',
     'contents.apps.ContentsConfig',
     'contact.apps.ContactConfig',
     'django_crontab']
    INTERNAL_IPS
    []
    LANGUAGES
    [('af', 'Afrikaans'),
     ('ar', 'Arabic'),
     ('ast', 'Asturian'),
     ('az', 'Azerbaijani'),
     ('bg', 'Bulgarian'),
     ('be', 'Belarusian'),
     ('bn', 'Bengali'),
     ('br', 'Breton'),
     ('bs', 'Bosnian'),
     ('ca', 'Catalan'),
     ('cs', 'Czech'),
     ('cy', 'Welsh'),
     ('da', 'Danish'),
     ('de', 'German'),
     ('dsb', 'Lower Sorbian'),
     ('el', 'Greek'),
     ('en', 'English'),
     ('en-au', 'Australian English'),
     ('en-gb', 'British English'),
     ('eo', 'Esperanto'),
     ('es', 'Spanish'),
     ('es-ar', 'Argentinian Spanish'),
     ('es-co', 'Colombian Spanish'),
     ('es-mx', 'Mexican Spanish'),
     ('es-ni', 'Nicaraguan Spanish'),
     ('es-ve', 'Venezuelan Spanish'),
     ('et', 'Estonian'),
     ('eu', 'Basque'),
     ('fa', 'Persian'),
     ('fi', 'Finnish'),
     ('fr', 'French'),
     ('fy', 'Frisian'),
     ('ga', 'Irish'),
     ('gd', 'Scottish Gaelic'),
     ('gl', 'Galician'),
     ('he', 'Hebrew'),
     ('hi', 'Hindi'),
     ('hr', 'Croatian'),
     ('hsb', 'Upper Sorbian'),
     ('hu', 'Hungarian'),
     ('ia', 'Interlingua'),
     ('id', 'Indonesian'),
     ('io', 'Ido'),
     ('is', 'Icelandic'),
     ('it', 'Italian'),
     ('ja', 'Japanese'),
     ('ka', 'Georgian'),
     ('kk', 'Kazakh'),
     ('km', 'Khmer'),
     ('kn', 'Kannada'),
     ('ko', 'Korean'),
     ('lb', 'Luxembourgish'),
     ('lt', 'Lithuanian'),
     ('lv', 'Latvian'),
     ('mk', 'Macedonian'),
     ('ml', 'Malayalam'),
     ('mn', 'Mongolian'),
     ('mr', 'Marathi'),
     ('my', 'Burmese'),
     ('nb', 'Norwegian Bokmål'),
     ('ne', 'Nepali'),
     ('nl', 'Dutch'),
     ('nn', 'Norwegian Nynorsk'),
     ('os', 'Ossetic'),
     ('pa', 'Punjabi'),
     ('pl', 'Polish'),
     ('pt', 'Portuguese'),
     ('pt-br', 'Brazilian Portuguese'),
     ('ro', 'Romanian'),
     ('ru', 'Russian'),
     ('sk', 'Slovak'),
     ('sl', 'Slovenian'),
     ('sq', 'Albanian'),
     ('sr', 'Serbian'),
     ('sr-latn', 'Serbian Latin'),
     ('sv', 'Swedish'),
     ('sw', 'Swahili'),
     ('ta', 'Tamil'),
     ('te', 'Telugu'),
     ('th', 'Thai'),
     ('tr', 'Turkish'),
     ('tt', 'Tatar'),
     ('udm', 'Udmurt'),
     ('uk', 'Ukrainian'),
     ('ur', 'Urdu'),
     ('vi', 'Vietnamese'),
     ('zh-hans', 'Simplified Chinese'),
     ('zh-hant', 'Traditional Chinese')]
    LANGUAGES_BIDI
    ['he', 'ar', 'fa', 'ur']
    LANGUAGE_CODE
    'zh-hans'
    LANGUAGE_COOKIE_AGE
    None
    LANGUAGE_COOKIE_DOMAIN
    None
    LANGUAGE_COOKIE_NAME
    'django_language'
    LANGUAGE_COOKIE_PATH
    '/'
    LOCALE_PATHS
    []
    LOGGING
    {}
    LOGGING_CONFIG
    'logging.config.dictConfig'
    LOGIN_REDIRECT_URL
    '/accounts/profile/'
    LOGIN_URL
    '/accounts/login/'
    LOGOUT_REDIRECT_URL
    None
    MANAGERS
    []
    MEDIA_ROOT
    '/www/wwwroot/leidianzhibo/html/media'
    MEDIA_URL
    '/media/'
    MESSAGE_STORAGE
    'django.contrib.messages.storage.fallback.FallbackStorage'
    MIDDLEWARE
    ['django.middleware.security.SecurityMiddleware',
     'django.contrib.sessions.middleware.SessionMiddleware',
     'django.middleware.common.CommonMiddleware',
     'django.middleware.csrf.CsrfViewMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django.contrib.messages.middleware.MessageMiddleware',
     'django.middleware.clickjacking.XFrameOptionsMiddleware']
    MIDDLEWARE_CLASSES
    ['django.middleware.common.CommonMiddleware',
     'django.middleware.csrf.CsrfViewMiddleware']
    MIGRATION_MODULES
    {}
    MONTH_DAY_FORMAT
    'F j'
    NUMBER_GROUPING
    0
    PASSWORD_HASHERS
    '********************'
    PASSWORD_RESET_TIMEOUT_DAYS
    '********************'
    PREPEND_WWW
    False
    ROOT_URLCONF
    'leidianzhibo.urls'
    SECRET_KEY
    '********************'
    SECURE_BROWSER_XSS_FILTER
    False
    SECURE_CONTENT_TYPE_NOSNIFF
    False
    SECURE_HSTS_INCLUDE_SUBDOMAINS
    False
    SECURE_HSTS_PRELOAD
    False
    SECURE_HSTS_SECONDS
    0
    SECURE_PROXY_SSL_HEADER
    None
    SECURE_REDIRECT_EXEMPT
    []
    SECURE_SSL_HOST
    None
    SECURE_SSL_REDIRECT
    False
    SERVER_EMAIL
    'root@localhost'
    SESSION_CACHE_ALIAS
    'default'
    SESSION_COOKIE_AGE
    1209600
    SESSION_COOKIE_DOMAIN
    None
    SESSION_COOKIE_HTTPONLY
    True
    SESSION_COOKIE_NAME
    'sessionid'
    SESSION_COOKIE_PATH
    '/'
    SESSION_COOKIE_SECURE
    False
    SESSION_ENGINE
    'django.contrib.sessions.backends.db'
    SESSION_EXPIRE_AT_BROWSER_CLOSE
    False
    SESSION_FILE_PATH
    None
    SESSION_SAVE_EVERY_REQUEST
    False
    SESSION_SERIALIZER
    'django.contrib.sessions.serializers.JSONSerializer'
    SETTINGS_MODULE
    'leidianzhibo.settings'
    SHORT_DATETIME_FORMAT
    'm/d/Y P'
    SHORT_DATE_FORMAT
    'm/d/Y'
    SIGNING_BACKEND
    'django.core.signing.TimestampSigner'
    SILENCED_SYSTEM_CHECKS
    []
    STATICFILES_DIRS
    ['/www/wwwroot/leidianzhibo/html/static']
    STATICFILES_FINDERS
    ['django.contrib.staticfiles.finders.FileSystemFinder',
     'django.contrib.staticfiles.finders.AppDirectoriesFinder']
    STATICFILES_STORAGE
    'django.contrib.staticfiles.storage.StaticFilesStorage'
    STATIC_ROOT
    '/www/wwwroot/leidianzhibo/html/static'
    STATIC_URL
    '/static/'
    TEMPLATES
    [{'APP_DIRS': True,
      'BACKEND': 'django.template.backends.django.DjangoTemplates',
      'DIRS': [''],
      'OPTIONS': {'context_processors': ['django.template.context_processors.debug',
                                         'django.template.context_processors.request',
                                         'django.contrib.auth.context_processors.auth',
                                         'django.contrib.messages.context_processors.messages']}},
     {'APP_DIRS': True,
      'BACKEND': 'django.template.backends.jinja2.Jinja2',
      'DIRS': ['/www/wwwroot/leidianzhibo/templates'],
      'OPTIONS': {'context_processors': ['django.template.context_processors.debug',
                                         'django.template.context_processors.request',
                                         'django.contrib.auth.context_processors.auth',
                                         'django.contrib.messages.context_processors.messages'],
                  'environment': 'utils.my_jinja2.environment'}}]
    TEST_NON_SERIALIZED_APPS
    []
    TEST_RUNNER
    'django.test.runner.DiscoverRunner'
    THOUSAND_SEPARATOR
    ','
    TIME_FORMAT
    'P'
    TIME_INPUT_FORMATS
    ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
    TIME_ZONE
    'Asia/Shanghai'
    USE_ETAGS
    False
    USE_I18N
    True
    USE_L10N
    True
    USE_THOUSAND_SEPARATOR
    False
    USE_TZ
    False
    USE_X_FORWARDED_HOST
    False
    USE_X_FORWARDED_PORT
    False
    WSGI_APPLICATION
    'leidianzhibo.wsgi.application'
    X_FRAME_OPTIONS
    ''
    YEAR_MONTH_FORMAT
    'F Y'

    You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard page generated by the handler for this status code.