fix: resolve line length violations (80+ characters)
- refactor src/cli/Main.py: split long logging config, user prompts, and method calls - refactor src/config/settings.py: break long Field definitions into multiple lines - refactor src/core/providers/enhanced_provider.py: split provider lists, headers, and long f-strings - refactor src/core/providers/streaming/voe.py: format HTTP header setup - update QualityTODO.md: mark all line length violations as completed All files now comply with 88-character line limit. Code readability improved with better-structured multi-line statements and intermediate variables for complex expressions.
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import re
|
||||
import base64
|
||||
import json
|
||||
import re
|
||||
|
||||
from requests.adapters import HTTPAdapter
|
||||
from urllib3.util.retry import Retry
|
||||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
from fake_useragent import UserAgent
|
||||
from requests.adapters import HTTPAdapter
|
||||
from urllib3.util.retry import Retry
|
||||
|
||||
from .Provider import Provider
|
||||
|
||||
# Compile regex patterns once for better performance
|
||||
@@ -49,7 +50,9 @@ class VOE(Provider):
|
||||
parts = redirect_url.strip().split("/")
|
||||
self.Header["Referer"] = f"{parts[0]}//{parts[2]}/"
|
||||
|
||||
response = self.session.get(redirect_url, headers={'User-Agent': self.RANDOM_USER_AGENT})
|
||||
response = self.session.get(
|
||||
redirect_url, headers={"User-Agent": self.RANDOM_USER_AGENT}
|
||||
)
|
||||
html = response.content
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user