mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 01:49:42 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 925fe21d03 | |||
| ec462afde6 |
@@ -19,7 +19,7 @@ def get_active_interfaces():
|
|||||||
for addr in addr_list:
|
for addr in addr_list:
|
||||||
if addr.family == 2: # ipv4
|
if addr.family == 2: # ipv4
|
||||||
ipv4 = addr.address
|
ipv4 = addr.address
|
||||||
if not ipv4.startswith("127.") and not ipv4.startswith("169.254") and up == True:
|
if not ipv4.startswith("127.") and not ipv4.startswith("169.254") and up:
|
||||||
active.append(interface)
|
active.append(interface)
|
||||||
consoleLog(f"Found Active: {interface}")
|
consoleLog(f"Found Active: {interface}")
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ def list_interfaces() -> None:
|
|||||||
for addr in addr_list:
|
for addr in addr_list:
|
||||||
if addr.family == 2: # ipv4
|
if addr.family == 2: # ipv4
|
||||||
ipv4 = addr.address
|
ipv4 = addr.address
|
||||||
if not ipv4.startswith("127.") and not ipv4.startswith("169.254") and up == True:
|
if not ipv4.startswith("127.") and not ipv4.startswith("169.254") and up:
|
||||||
status = "ACTIVE"
|
status = "ACTIVE"
|
||||||
else:
|
else:
|
||||||
status = "INACTIVE"
|
status = "INACTIVE"
|
||||||
|
|||||||
@@ -23,4 +23,6 @@ def run_download(item, posts, post_titles):
|
|||||||
add_download_log(item, post_url, magnet_uri, False)
|
add_download_log(item, post_url, magnet_uri, False)
|
||||||
|
|
||||||
def run_download_direct(magnet_uri):
|
def run_download_direct(magnet_uri):
|
||||||
add_download(magnet_uri)
|
consoleLog(f"Direct download: {magnet_uri[:60]}")
|
||||||
|
add_download(magnet_uri)
|
||||||
|
add_download_log("Direct Download", "", magnet_uri, False)
|
||||||
Reference in New Issue
Block a user