Big updates

This commit is contained in:
0d0 2025-02-12 18:35:26 +01:00
parent ea0e18f9d7
commit 8223487c0b
8 changed files with 70 additions and 77 deletions

View file

@ -1,9 +1,9 @@
name: Update Minor Dependencies and Build Container
name: Bump deps (only minor versions)
on:
schedule:
- cron: '0 0 * * *' # Runs every night at midnight (UTC)
workflow_dispatch: # Allows manual triggering
workflow_dispatch:
jobs:
update-dependencies:
@ -13,24 +13,17 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3
with:
token: ${{ secrets.FORGEJO_TOKEN }} # Make sure to add this token in your repo secrets
token: ${{ secrets.FORGEJO_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # Adjust as needed
node-version: '20'
- name: Configure npm version
run: npm install
- name: Check and Update Minor Dependencies
run: npx npm-check-updates --target minor -u
- name: Install Updated Dependencies
run: npm install
- name: Commit and Push Changes
- name: Update deps, install them (to change package-lock.json) and commit
run: |
npx npm-check-updates --target minor -u
npm install
git config --global user.name "forgejo-bot"
git config --global user.email "bot@pweapon.org"
git add package.json || exit 0

View file

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<link rel="manifest" href="manifest.json">
<link rel="manifest" href="manifest.json" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
<style>

View file

@ -1,3 +1,3 @@
<script lang='ts'>
<script lang="ts">
let props = $props();
</script>

View file

@ -7,9 +7,10 @@
{@render children()}
<footer
class="absolute bottom-0 w-[100dvw] mt-10 bg-black text-green-500 text-center py-4 border-t-4 border-green-500"
class="absolute bottom-0 mt-10 w-[100dvw] border-t-4 border-green-500 bg-black py-4 text-center text-green-500"
>
<a class='underline' href='https://git.pweapon.org/odo/dl.emersa.it'>source code</a> - Made with ❤️ by Emersa <span>©</span>
<a class="underline" href="https://git.pweapon.org/odo/dl.emersa.it">source code</a> - Made with
❤️ by Emersa <span>©</span>
</footer>
<style>

View file

@ -57,7 +57,7 @@
</svg>
</button>
<h1 id='title' class="mb-6 text-center text-xl">🐙 Scaricatore 🐙</h1>
<h1 id="title" class="mb-6 text-center text-xl">🐙 Scaricatore 🐙</h1>
<form class="space-y-6" onsubmit={handleSubmit}>
<!-- Source Selection -->
<fieldset class="space-y-4">

View file

@ -6,7 +6,6 @@ import { json, error } from '@sveltejs/kit';
import type { RequestHandler } from './$types';
import { spawn } from 'child_process';
/**
* Fetch YouTube metadata (title, uploader/artist)
*/
@ -76,7 +75,7 @@ export const GET: RequestHandler = async ({ url }) => {
const safeTitle = sanitizeFilename(`${uploader} - ${title}`);
const filename = `${safeTitle}.${format}`;
console.log(filename)
console.log(filename);
// Stream video/audio
return new Response(streamYouTube(link, format), {
headers: {