diff --git a/misc_scripts/picard_dates_with_dots.txt b/misc_scripts/picard_dates_with_dots.txt index c513860..8163d6f 100644 --- a/misc_scripts/picard_dates_with_dots.txt +++ b/misc_scripts/picard_dates_with_dots.txt @@ -1,3 +1,3 @@ $if2(%albumartist%,%artist%)/ -$if(%albumartist%,$if(%date%,$replace(%date%,-,.) - )%album%/,) +$if(%albumartist%,$if(%originaldate%,$replace(%originaldate%,-,.) - )%album%/,) $if($gt(%totaldiscs%,1),$if($gt(%totaldiscs%,9),$num(%discnumber%,2),%discnumber%)-,)$if($and(%albumartist%,%tracknumber%),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title% diff --git a/qr_code_crypto/src/lib.rs b/qr_code_crypto/src/lib.rs index 45b26c0..0321bb3 100644 --- a/qr_code_crypto/src/lib.rs +++ b/qr_code_crypto/src/lib.rs @@ -36,7 +36,13 @@ impl CryptoInvoice for MoneroInvoice { } fn validate(self) -> bool { - unimplemented!(); + // TODO - actually do this properly - I think there's a checksum to check + // and should check the first chars are 4 or 8... and some more things + // probably only supper standard addresses too + if self.address.len() != 95 { + return false; + } + true } fn address(self) -> String { self.address diff --git a/scryfall_deser/scripts/search_with_rofi.sh b/scryfall_deser/scripts/search_with_rofi.sh old mode 100755 new mode 100644 diff --git a/scryfall_deser/scripts/search_with_rofi_with_args.sh b/scryfall_deser/scripts/search_with_rofi_with_args.sh old mode 100755 new mode 100644 diff --git a/scryfall_deser/scripts/update_with_rofi.sh b/scryfall_deser/scripts/update_with_rofi.sh old mode 100755 new mode 100644