Compare commits
3
Commits
58701a7242
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f80b99e4e | ||
|
|
3d6ba1ef09 | ||
|
|
3530c755ce |
Generated
+6
-6
@@ -5,11 +5,11 @@
|
|||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705309234,
|
"lastModified": 1731533236,
|
||||||
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
|
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -20,11 +20,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1707711327,
|
"lastModified": 1768395095,
|
||||||
"narHash": "sha256-JaiR0Er0Bx80CT5POOYR1I1tLM7VvC2/ny6mOmkoRQw=",
|
"narHash": "sha256-ZhuYJbwbZT32QA95tSkXd9zXHcdZj90EzHpEXBMabaw=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "01737456dfe4907fb5bdc8af39ac8c6d6b1fb551",
|
"rev": "13868c071cc73a5e9f610c47d7bb08e5da64fdd5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
+4
-1
@@ -59,7 +59,10 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||||||
} else {
|
} else {
|
||||||
let youtube_cover_url = metadata.additional_info.as_ref()
|
let youtube_cover_url = metadata.additional_info.as_ref()
|
||||||
.and_then(|info| info.music_service_name.as_ref())
|
.and_then(|info| info.music_service_name.as_ref())
|
||||||
.filter(|service| *service == "YouTube Music")
|
.filter(
|
||||||
|
|service|
|
||||||
|
["YouTube", "YouTube Music"].contains(&service.as_str())
|
||||||
|
)
|
||||||
.and_then(|_| metadata.additional_info.as_ref())
|
.and_then(|_| metadata.additional_info.as_ref())
|
||||||
.and_then(|info| info.origin_url.as_ref())
|
.and_then(|info| info.origin_url.as_ref())
|
||||||
.and_then(|url| extract_youtube_video_id(url))
|
.and_then(|url| extract_youtube_video_id(url))
|
||||||
|
|||||||
Reference in New Issue
Block a user