mirror of
https://github.com/FuzzyGrim/Yamtrack.git
synced 2026-03-03 00:27:02 +00:00
Fix comments from review
- Update globe icon to one from lucide - Use get() properly for dicts, avoiding type issues - Fix too long line
This commit is contained in:
@@ -149,9 +149,10 @@ def movie(media_id):
|
||||
|
||||
if data is None:
|
||||
url = f"{base_url}/movie/{media_id}"
|
||||
appends = ["recommendations", "external_ids", "credits", "watch/providers"]
|
||||
params = {
|
||||
**base_params,
|
||||
"append_to_response": "recommendations,external_ids,credits,watch/providers",
|
||||
"append_to_response": ",".join(appends),
|
||||
}
|
||||
|
||||
try:
|
||||
@@ -672,9 +673,9 @@ def filter_providers(all_providers, region):
|
||||
# Convert dict back to list and add image URLs
|
||||
providers = list(providers.values())
|
||||
for provider in providers:
|
||||
provider["image"] = get_image_url(provider["logo_path"])
|
||||
provider["image"] = get_image_url(provider.get("logo_path"))
|
||||
|
||||
providers.sort(key=lambda e: e.get("display_priority", ""))
|
||||
providers.sort(key=lambda e: e.get("display_priority", 999))
|
||||
return providers
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class="{{ classes }}">
|
||||
<path d="M17.9,17.39C17.64,16.59 16.89,16 16,16H15V13A1,1 0 0,0 14,12H8V10H10A1,1 0 0,0 11,9V7H13A2,2 0 0,0 15,5V4.59C17.93,5.77 20,8.64 20,12C20,14.08 19.2,15.97 17.9,17.39M11,19.93C7.05,19.44 4,16.08 4,12C4,11.38 4.08,10.78 4.21,10.21L9,15V16A2,2 0 0,0 11,18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z" />
|
||||
<path d="M21.54 15H17a2 2 0 0 0-2 2v4.54"/>
|
||||
<path d="M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17"/>
|
||||
<path d="M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05"/>
|
||||
<circle cx="12" cy="12" r="10"/>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 493 B After Width: | Height: | Size: 472 B |
Reference in New Issue
Block a user