mirror of
https://gitverse.ru/ot/DownOnSpot
synced 2025-12-17 00:44:17 +00:00
chore: Release v0.6.0
This commit is contained in:
parent
c3f2ae440a
commit
148127ab65
4 changed files with 487 additions and 196 deletions
671
Cargo.lock
generated
671
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -7,7 +7,7 @@ panic = "abort"
|
|||
|
||||
[package]
|
||||
name = "down_on_spot"
|
||||
version = "0.5.1"
|
||||
version = "0.6.0"
|
||||
edition = "2021"
|
||||
authors = ["exttex", "oSumAtrIX"]
|
||||
build = "build.rs"
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ async fn start() {
|
|||
|
||||
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;
|
||||
|
||||
if state != &download_states[i] {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
use base64::engine::general_purpose;
|
||||
use base64::Engine;
|
||||
use chrono::{Datelike, NaiveDate};
|
||||
use oggvorbismeta::{read_comment_header, replace_comment_header, CommentHeader, VorbisComments};
|
||||
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);
|
||||
|
||||
self.tag
|
||||
.add_tag_single("METADATA_BLOCK_PICTURE", &base64::encode(picture));
|
||||
self.tag.add_tag_single(
|
||||
"METADATA_BLOCK_PICTURE",
|
||||
&general_purpose::STANDARD.encode(picture),
|
||||
);
|
||||
}
|
||||
|
||||
fn set_raw(&mut self, tag: &str, value: Vec<String>) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue