Your ROOT_URL in app.ini is https://git.ondrovo.com/ but you are visiting http://159.69.29.240:49153/MightyPork/rapblock/commit/d9df5c0d172b03d7476ee27b87bc2a23684eb29d?style=unified&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
4 additions and
13 deletions
src/main.rs
@ -169,25 +169,16 @@ fn main() -> Result<(), Error> {
break 'event_loop ;
}
Event ::TrackChanged ( mut metadata ) = > {
// we can't use the event metadata - it's incomplete
::std ::thread ::sleep ( Duration ::from_millis ( 250 ) ) ;
metadata = player . get_metadata ( ) . unwrap_or ( metadata ) ;
let mut title = metadata . title ( ) . unwrap_or ( "" ) ;
let title = metadata . title ( ) . unwrap_or ( "" ) ;
info ! ( "--- new track : {} ---" , title ) ;
if title . is_empty ( ) {
warn ! ( "!!! Spotify is giving us garbage - empty metadata struct !!!" ) ;
::std ::thread ::sleep ( Duration ::from_millis ( 250 ) ) ;
metadata = player . get_metadata ( ) . unwrap_or ( metadata ) ;
title = metadata . title ( ) . unwrap_or ( "" ) ;
info ! ( "After metadata reload -> new track : {}" , title ) ;
if title . is_empty ( ) {
// wait for next event
warn ! ( "Still bad" ) ;
continue 'event_loop ;
}
warn ! ( "Empty metadata! Wait for next track..." ) ;
continue 'event_loop ;
}
let mut skip = ! config . allow_by_default ;