mirror of
https://github.com/marcopiovanello/yt-dlp-web-ui.git
synced 2026-07-25 06:54:30 +00:00
updated package name
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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,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 (
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
/*
|
||||
|
||||
@@ -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,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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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,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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
/*
|
||||
|
||||
@@ -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,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"`
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user