fix:not with info(#505)
This commit is contained in:
parent
2b398dcaa5
commit
947d081737
utils
@ -497,6 +497,8 @@ def append_data_to_info_data(
|
||||
try:
|
||||
url, date, resolution, *rest = item
|
||||
url_origin = origin or (rest[0] if rest else None)
|
||||
if not url_origin:
|
||||
continue
|
||||
if url:
|
||||
pure_url = url.partition("$")[0]
|
||||
if pure_url in urls:
|
||||
@ -523,8 +525,6 @@ def get_origin_method_name(method):
|
||||
"""
|
||||
Get the origin method name
|
||||
"""
|
||||
if method in ["hotel_tonkiang", "hotel_fofa"] and not config.open_hotel:
|
||||
return None
|
||||
return "hotel" if method.startswith("hotel_") else method
|
||||
|
||||
|
||||
|
@ -136,23 +136,26 @@ def get_total_urls_from_info_list(infoList, ipv6=False):
|
||||
|
||||
total_urls = []
|
||||
for url, _, resolution, origin in infoList:
|
||||
if not origin:
|
||||
continue
|
||||
|
||||
if origin == "important":
|
||||
pure_url, _, info = url.partition("$")
|
||||
new_info = info.partition("!")[2]
|
||||
total_urls.append(f"{pure_url}${new_info}" if new_info else pure_url)
|
||||
continue
|
||||
|
||||
if origin == "subscribe" and "/rtp/" in url:
|
||||
origin = "multicast"
|
||||
|
||||
if origin not in origin_type_prefer:
|
||||
continue
|
||||
|
||||
if config.open_filter_resolution and resolution:
|
||||
resolution_value = get_resolution_value(resolution)
|
||||
if resolution_value < config.min_resolution_value:
|
||||
continue
|
||||
|
||||
if not origin or (origin not in origin_type_prefer):
|
||||
continue
|
||||
|
||||
if origin == "subscribe" and "/rtp/" in url:
|
||||
origin = "multicast"
|
||||
|
||||
url_is_ipv6 = is_ipv6(url)
|
||||
if url_is_ipv6:
|
||||
url += "|IPv6"
|
||||
|
Loading…
x
Reference in New Issue
Block a user