Merge branch '13-uncheck-the-generated-using-ai-automatically' into 'main'

Resolve "Uncheck the « Generated using AI » automatically"

See merge request veretcle/tootube!30
This commit is contained in:
VC
2025-12-03 14:17:27 +00:00
5 changed files with 685 additions and 371 deletions

View File

@@ -0,0 +1,20 @@
---
name: rust-check
on: # yamllint disable-line rule:truthy
- push
jobs:
rust-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
components: "clippy,rustfmt"
- run: cargo fmt -- --check
- run: cargo check
- run: cargo clippy -- -D warnings
- run: cargo test
- run: cargo build

View File

@@ -0,0 +1,23 @@
---
name: rust-release
on: # yamllint disable-line rule:truthy
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- name: Get package name
run: echo "CARGO_PKG_NAME=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].name')" >> $GITEA_ENV
- run: cargo build --release
- uses: https://gitea.com/actions/gitea-release-action@v1
with:
files: |-
target/release/${{ env.CARGO_PKG_NAME }}
api_key: '${{ secrets.RELEASE_TOKEN }}'

1008
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
[package]
name = "tootube"
authors = ["VC <veretcle+framagit@mateu.be>"]
version = "0.10.0"
version = "0.10.1"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@@ -79,6 +79,8 @@ impl Default for YoutubeUploadParamsSnippet {
struct YoutubeUploadParamsStatus {
#[serde(rename = "selfDeclaredMadeForKids")]
self_declared_made_for_kids: bool,
#[serde(rename = "containsSyntheticMedia")]
contains_synthetic_media: bool,
#[serde(rename = "privacyStatus")]
privacy_status: String,
license: String,
@@ -88,6 +90,7 @@ impl Default for YoutubeUploadParamsStatus {
fn default() -> Self {
YoutubeUploadParamsStatus {
self_declared_made_for_kids: false,
contains_synthetic_media: false,
privacy_status: "public".to_string(),
license: "creativeCommon".to_string(),
}