File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/platform/bilibili/source Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -108,9 +108,11 @@ mod data {
108108 impl ModuleAuthor {
109109 pub fn pub_time ( & self ) -> Option < u64 > {
110110 let pub_ts = match self {
111- ModuleAuthor :: Normal ( normal) => normal. pub_ts ,
112- ModuleAuthor :: Pgc ( pgc) => pgc. pub_ts ,
113- } ;
111+ ModuleAuthor :: Normal ( normal) => normal. pub_ts . as_str ( ) ,
112+ ModuleAuthor :: Pgc ( pgc) => pgc. pub_ts . as_str ( ) ,
113+ }
114+ . parse :: < u64 > ( )
115+ . ok ( ) ?;
114116 ( pub_ts != 0 ) . then_some ( pub_ts)
115117 }
116118 }
@@ -137,15 +139,15 @@ mod data {
137139 pub face : String , // URL
138140 pub mid : StrOrNumber ,
139141 pub name : String ,
140- pub pub_ts : u64 ,
142+ pub pub_ts : String ,
141143 }
142144
143145 #[ derive( Clone , Debug , Deserialize ) ]
144146 pub struct ModuleAuthorPgc {
145147 pub face : String , // URL
146148 pub mid : StrOrNumber ,
147149 pub name : String ,
148- pub pub_ts : u64 , // Always 0 ?
150+ pub pub_ts : String , // Always "0" ?
149151 }
150152
151153 #[ derive( Debug , Deserialize ) ]
You can’t perform that action at this time.
0 commit comments