updated package name

This commit is contained in:
marcopiovanello
2026-06-29 18:44:56 +02:00
parent dea6acd6ac
commit cf7b9272a9
57 changed files with 161 additions and 164 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql"
"github.com/go-chi/chi/v5"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/archive/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/archive/domain"
)
// alias type
+1 -1
View File
@@ -3,7 +3,7 @@ package archive
import (
"database/sql"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/archive/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/archive/domain"
)
func Container(db *sql.DB) (domain.RestHandler, domain.Service) {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"time"
"github.com/go-chi/chi/v5"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/archive/data"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/archive/data"
)
type ArchiveEntry struct {
+4 -4
View File
@@ -4,10 +4,10 @@ import (
"database/sql"
"sync"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/archive/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/archive/repository"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/archive/rest"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/archive/service"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/archive/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/archive/repository"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/archive/rest"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/archive/service"
)
var (
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"os"
"github.com/google/uuid"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/archive/data"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/archive/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/archive/data"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/archive/domain"
)
type Repository struct {
+4 -4
View File
@@ -6,11 +6,11 @@ import (
"strconv"
"github.com/go-chi/chi/v5"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/archive/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/openid"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/archive/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/openid"
middlewares "github.com/marcopiovanello/yt-dlp-web-ui/v3/server/middleware"
middlewares "github.com/marcopiovanello/yt-dlp-web-ui/v4/server/middleware"
)
type Handler struct {
+2 -2
View File
@@ -3,8 +3,8 @@ package service
import (
"context"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/archive/data"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/archive/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/archive/data"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/archive/domain"
)
type Service struct {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"os/exec"
"path/filepath"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
)
// Perform a search on the archive.txt file an determines if a download
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"database/sql"
"log/slog"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/archive"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/archive"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
)
var (
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"os"
"path/filepath"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
)
var lockFilePath = filepath.Join(config.Instance().Dir(), ".db.lock")
+3 -3
View File
@@ -17,9 +17,9 @@ import (
"time"
"github.com/go-chi/chi/v5"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/kv"
)
/*
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"os/exec"
"sync"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
)
func ParseURL(url string) (*Metadata, error) {
+1 -1
View File
@@ -1,7 +1,7 @@
package internal
import (
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/common"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/common"
)
// Used to unmarshall yt-dlp progress
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"log/slog"
"sync"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/common"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/common"
)
type DownloaderBase struct {
+2 -2
View File
@@ -1,8 +1,8 @@
package downloaders
import (
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/common"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/common"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal"
)
type Downloader interface {
+3 -3
View File
@@ -12,9 +12,9 @@ import (
"syscall"
"github.com/google/uuid"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/common"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/common"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal"
)
const downloadTemplate = `download:
+4 -4
View File
@@ -14,10 +14,10 @@ import (
"time"
"github.com/google/uuid"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/common"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/pipes"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/common"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/pipes"
)
type LiveStreamDownloader struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"log/slog"
"strings"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal"
)
type LogConsumer interface {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"slices"
"strings"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal"
)
func argsSanitizer(params []string) []string {
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"sync"
"time"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/downloaders"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/queue"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/downloaders"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/queue"
bolt "go.etcd.io/bbolt"
)
+1 -1
View File
@@ -1,6 +1,6 @@
package kv
import "github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal"
import "github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal"
// struct representing the current status of the memoryDB
// used for serializaton/persistence reasons
+5 -5
View File
@@ -10,11 +10,11 @@ import (
"strings"
"time"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/downloaders"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/pipes"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/queue"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/downloaders"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/pipes"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/queue"
)
const (
@@ -4,9 +4,9 @@ import (
"testing"
"time"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/queue"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/queue"
)
func setupTest() {
+2 -2
View File
@@ -1,8 +1,8 @@
package livestream
import (
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/queue"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/queue"
bolt "go.etcd.io/bbolt"
)
+2 -2
View File
@@ -10,8 +10,8 @@ import (
"syscall"
"time"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/common"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/common"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
)
func DefaultFetcher(url string) (*common.DownloadMetadata, error) {
+3 -3
View File
@@ -5,9 +5,9 @@ import (
"errors"
"log/slog"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/downloaders"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/metadata"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/downloaders"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/metadata"
)
type MessageQueue struct {
+3 -3
View File
@@ -9,9 +9,9 @@ import (
"github.com/go-chi/chi/v5"
"github.com/gorilla/websocket"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
middlewares "github.com/marcopiovanello/yt-dlp-web-ui/v3/server/middleware"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/openid"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
middlewares "github.com/marcopiovanello/yt-dlp-web-ui/v4/server/middleware"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/openid"
)
var upgrader = websocket.Upgrader{
+2 -2
View File
@@ -3,8 +3,8 @@ package middlewares
import (
"net/http"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/openid"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/openid"
)
func ApplyAuthenticationByConfig(next http.Handler) http.Handler {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"github.com/coreos/go-oidc/v3/oidc"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"golang.org/x/oauth2"
)
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/coreos/go-oidc/v3/oidc"
"github.com/google/uuid"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"golang.org/x/oauth2"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"slices"
"strconv"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/common"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/common"
)
/*
+6 -6
View File
@@ -9,12 +9,12 @@ import (
"strings"
"time"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/common"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/downloaders"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/queue"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/common"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/downloaders"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/queue"
)
func PlaylistDetect(req internal.DownloadRequest, mq *queue.MessageQueue, db *kv.Store) error {
+1 -1
View File
@@ -1,6 +1,6 @@
package playlist
import "github.com/marcopiovanello/yt-dlp-web-ui/v3/server/common"
import "github.com/marcopiovanello/yt-dlp-web-ui/v4/server/common"
type Metadata struct {
Entries []common.DownloadMetadata `json:"entries"`
+3 -3
View File
@@ -1,9 +1,9 @@
package rest
import (
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/livestream"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/queue"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/livestream"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/queue"
bolt "go.etcd.io/bbolt"
)
+3 -3
View File
@@ -2,9 +2,9 @@ package rest
import (
"github.com/go-chi/chi/v5"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
middlewares "github.com/marcopiovanello/yt-dlp-web-ui/v3/server/middleware"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/openid"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
middlewares "github.com/marcopiovanello/yt-dlp-web-ui/v4/server/middleware"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/openid"
)
func Container(args *ContainerArgs) *Handler {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"net/http"
"github.com/go-chi/chi/v5"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal"
)
type Handler struct {
+7 -7
View File
@@ -11,13 +11,13 @@ import (
"time"
"github.com/google/uuid"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/downloaders"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/livestream"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/queue"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/playlist"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/downloaders"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/livestream"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/queue"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/playlist"
bolt "go.etcd.io/bbolt"
)
+6 -6
View File
@@ -2,12 +2,12 @@ package rpc
import (
"github.com/go-chi/chi/v5"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/livestream"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/queue"
middlewares "github.com/marcopiovanello/yt-dlp-web-ui/v3/server/middleware"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/openid"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/livestream"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/queue"
middlewares "github.com/marcopiovanello/yt-dlp-web-ui/v4/server/middleware"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/openid"
)
// Dependency injection container.
+9 -9
View File
@@ -4,15 +4,15 @@ import (
"errors"
"log/slog"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/formats"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/downloaders"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/livestream"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/queue"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/playlist"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/sys"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/updater"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/formats"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/downloaders"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/livestream"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/queue"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/playlist"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/sys"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/updater"
)
type Service struct {
+16 -16
View File
@@ -17,22 +17,22 @@ import (
"github.com/go-chi/chi/v5"
"github.com/go-chi/cors"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/filebrowser"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/livestream"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/pipeline"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/queue"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/logging"
middlewares "github.com/marcopiovanello/yt-dlp-web-ui/v3/server/middleware"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/openid"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/rest"
ytdlpRPC "github.com/marcopiovanello/yt-dlp-web-ui/v3/server/rpc"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/status"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription/task"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/twitch"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/user"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/filebrowser"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/livestream"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/pipeline"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/queue"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/logging"
middlewares "github.com/marcopiovanello/yt-dlp-web-ui/v4/server/middleware"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/openid"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/rest"
ytdlpRPC "github.com/marcopiovanello/yt-dlp-web-ui/v4/server/rpc"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/status"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription/task"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/twitch"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/user"
bolt "go.etcd.io/bbolt"
)
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"context"
"slices"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/status/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/status/domain"
)
type Repository struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"encoding/json"
"net/http"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/status/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/status/domain"
)
type RestHandler struct {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"sync"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/rest"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/status/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/rest"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/status/domain"
)
type Service struct {
+4 -4
View File
@@ -2,10 +2,10 @@ package status
import (
"github.com/go-chi/chi/v5"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/status/repository"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/status/rest"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/status/service"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/status/repository"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/status/rest"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/status/service"
)
func ApplyRouter(mdb *kv.Store) func(chi.Router) {
+2 -2
View File
@@ -1,8 +1,8 @@
package subscription
import (
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription/task"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription/task"
bolt "go.etcd.io/bbolt"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"net/http"
"github.com/go-chi/chi/v5"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription/data"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription/data"
)
type Subscription struct {
+5 -5
View File
@@ -3,11 +3,11 @@ package subscription
import (
"sync"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription/repository"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription/rest"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription/service"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription/task"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription/repository"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription/rest"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription/service"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription/task"
bolt "go.etcd.io/bbolt"
)
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"fmt"
"github.com/google/uuid"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription/data"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription/data"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription/domain"
bolt "go.etcd.io/bbolt"
)
+4 -4
View File
@@ -6,10 +6,10 @@ import (
"strconv"
"github.com/go-chi/chi/v5"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
middlewares "github.com/marcopiovanello/yt-dlp-web-ui/v3/server/middleware"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/openid"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
middlewares "github.com/marcopiovanello/yt-dlp-web-ui/v4/server/middleware"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/openid"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription/domain"
)
type RestHandler struct {
+3 -3
View File
@@ -5,9 +5,9 @@ import (
"errors"
"math"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription/data"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription/task"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription/data"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription/task"
"github.com/robfig/cron/v3"
)
+6 -6
View File
@@ -9,12 +9,12 @@ import (
"regexp"
"time"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/archive"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/downloaders"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/queue"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/subscription/domain"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/archive"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/downloaders"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/queue"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/subscription/domain"
"github.com/robfig/cron/v3"
)
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"os"
"path/filepath"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal"
"golang.org/x/sys/unix"
)
+5 -5
View File
@@ -10,11 +10,11 @@ import (
"sync"
"time"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/downloaders"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/pipes"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal/queue"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/downloaders"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/kv"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/pipes"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/queue"
bolt "go.etcd.io/bbolt"
)
+1 -1
View File
@@ -3,7 +3,7 @@ package updater
import (
"os/exec"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
)
// Update using the builtin function of yt-dlp
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"time"
"github.com/golang-jwt/jwt/v5"
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
"golang.org/x/crypto/bcrypt"
)