chore: Release v0.6.0

This commit is contained in:
oSumAtrIX 2024-08-27 00:05:17 +02:00
parent c3f2ae440a
commit 148127ab65
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
4 changed files with 487 additions and 196 deletions

671
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -7,7 +7,7 @@ panic = "abort"
[package] [package]
name = "down_on_spot" name = "down_on_spot"
version = "0.5.1" version = "0.6.0"
edition = "2021" edition = "2021"
authors = ["exttex", "oSumAtrIX"] authors = ["exttex", "oSumAtrIX"]
build = "build.rs" build = "build.rs"

View file

@ -169,7 +169,7 @@ async fn start() {
let mut progress_sum = 0.; let mut progress_sum = 0.;
for (i, download) in (&downloader.get_downloads().await).iter().enumerate() { for (i, download) in downloader.get_downloads().await.iter().enumerate() {
let state = &download.state; let state = &download.state;
if state != &download_states[i] { if state != &download_states[i] {

View file

@ -1,3 +1,5 @@
use base64::engine::general_purpose;
use base64::Engine;
use chrono::{Datelike, NaiveDate}; use chrono::{Datelike, NaiveDate};
use oggvorbismeta::{read_comment_header, replace_comment_header, CommentHeader, VorbisComments}; use oggvorbismeta::{read_comment_header, replace_comment_header, CommentHeader, VorbisComments};
use std::fs::File; use std::fs::File;
@ -61,8 +63,10 @@ impl super::Tag for OggTag {
picture.extend((data.len() as u32).to_be_bytes().iter()); picture.extend((data.len() as u32).to_be_bytes().iter());
picture.extend(data); picture.extend(data);
self.tag self.tag.add_tag_single(
.add_tag_single("METADATA_BLOCK_PICTURE", &base64::encode(picture)); "METADATA_BLOCK_PICTURE",
&general_purpose::STANDARD.encode(picture),
);
} }
fn set_raw(&mut self, tag: &str, value: Vec<String>) { fn set_raw(&mut self, tag: &str, value: Vec<String>) {