@@ -25,7 +25,7 @@ public static string GetFileName(Video video, string platform)
2525 {
2626 return platform switch
2727 {
28- "Youtube" or IYtarchiveService . Name or IYtdlpService . Name => $ "{ video . id } .mp4",
28+ "Youtube" or IYtdlpService . Name => $ "{ video . id } .mp4",
2929 "Twitch" or IStreamlinkService . Name => $ "{ video . id } .mp4",
3030 "Twitcasting" or ITwitcastingRecorderService . Name => $ "{ video . ChannelId } _{ DateTime . UtcNow : yyyyMMddHHmmss} .mp4",
3131 "FC2" or IFc2LiveDLService . Name => $ "{ video . ChannelId } _{ DateTime . UtcNow : yyyyMMddHHmmss} .mp4",
@@ -45,7 +45,7 @@ public static string PlatformType(string channelId, string platform)
4545 {
4646 return platform switch
4747 {
48- "Youtube" or IYtarchiveService . Name or IYtdlpService . Name
48+ "Youtube" or IYtdlpService . Name
4949 => channelId , // Youtube channelId already starts with "UC"
5050 "Twitch" or IStreamlinkService . Name
5151 => channelId . StartsWith ( "TW" ) ? channelId [ 2 ..] : channelId ,
@@ -61,7 +61,7 @@ public static string DatabaseType(string channelId, string platform)
6161 {
6262 return platform switch
6363 {
64- "Youtube" or IYtarchiveService . Name or IYtdlpService . Name
64+ "Youtube" or IYtdlpService . Name
6565 => channelId , // Youtube channelId always starts with "UC"
6666 "Twitch" or IStreamlinkService . Name
6767 => channelId . StartsWith ( "TW" ) ? channelId : "TW" + channelId ,
@@ -80,7 +80,7 @@ public static string PlatformType(string videoId, string platform)
8080 {
8181 return platform switch
8282 {
83- "Youtube" or IYtarchiveService . Name or IYtdlpService . Name
83+ "Youtube" or IYtdlpService . Name
8484 => videoId . StartsWith ( 'Y' ) ? videoId [ 1 ..] : videoId ,
8585 "Twitch" or IStreamlinkService . Name
8686 => videoId . StartsWith ( "TW" ) ? videoId [ 2 ..] : videoId ,
@@ -96,7 +96,7 @@ public static string DatabaseType(string videoId, string platform)
9696 {
9797 return platform switch
9898 {
99- "Youtube" or IYtarchiveService . Name or IYtdlpService . Name
99+ "Youtube" or IYtdlpService . Name
100100 => "Y" + videoId ,
101101 "Twitch" or IStreamlinkService . Name
102102 => "TW" + videoId ,
0 commit comments