File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 19
19
using System . Collections . Generic ;
20
20
using System . IO ;
21
21
using System . Text . Json . Serialization ;
22
+ using System . Xml . Serialization ;
22
23
using Gunloader . Programs ;
23
24
using Gunloader . Serialisation ;
24
25
using static System . Guid ;
@@ -49,7 +50,8 @@ public override void Hydrate(Metadata metadata)
49
50
var video = new Video ( ) ;
50
51
video . Load ( _url , _ytdl ) ;
51
52
52
- Title = video . Title ;
53
+ Title = video . Title ;
54
+ Source = video . URL ;
53
55
54
56
for ( var i = 0 ; i < video . Chapters . Count ; i ++ )
55
57
{
@@ -93,6 +95,7 @@ public class Video
93
95
[ JsonPropertyName ( "id" ) ] public string ID { get ; set ; } = string . Empty ;
94
96
[ JsonPropertyName ( "title" ) ] public string Title { get ; set ; } = string . Empty ;
95
97
[ JsonPropertyName ( "chapters" ) ] public List < Chapter > Chapters { get ; set ; } = new ( ) ;
98
+ [ JsonIgnore ] [ XmlIgnore ] public string URL => $ "https://youtu.be/{ ID } ";
96
99
97
100
public void Load ( string source , YTDL ytdl )
98
101
{
You can’t perform that action at this time.
0 commit comments