1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

Merge movie-web v4.5.0 to sudo-flix main

This commit is contained in:
Cooper Ransom 2024-02-26 17:26:48 -05:00
commit 3f294a6e0b
9 changed files with 31 additions and 90 deletions

View file

@ -5,15 +5,17 @@ Thank you for investing your time in contributing to our project! Your contribut
Please read our [Code of Conduct](./CODE_OF_CONDUCT.md) to keep our community approachable and respectable. Please read our [Code of Conduct](./CODE_OF_CONDUCT.md) to keep our community approachable and respectable.
## Contents ## Contents
- [New Contributor Guide](#new-contributor-guide) - [Contributing Guidelines for movie-web](#contributing-guidelines-for-movie-web)
- [Requesting a feature or reporting a bug](#requesting-a-feature-or-reporting-a-bug) - [Contents](#contents)
- [Discord Server](#discord-server) - [New contributor guide](#new-contributor-guide)
- [GitHub Issues](#github-issues) - [Requesting a feature or reporting a bug](#requesting-a-feature-or-reporting-a-bug)
- [Before you start](#before-you-start) - [Discord Server](#discord-server)
- [Contributing](#before-you-start) - [GitHub Issues](#github-issues)
- [Recommended Development Environment](#recommended-development-environment) - [Before you start!](#before-you-start)
- [Tips](#tips) - [Contributing](#contributing)
- [Language Contributions](#language-contributions) - [Recommended Development Environment](#recommended-development-environment)
- [Tips](#tips)
- [Language Contributions](#language-contributions)
## New contributor guide ## New contributor guide

View file

@ -8,10 +8,6 @@ COPY package.json ./
COPY pnpm-lock.yaml ./ COPY pnpm-lock.yaml ./
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
ARG PWA_ENABLED="false"
ENV VITE_PWA_ENABLED=${PWA_ENABLED}
COPY . ./ COPY . ./
RUN pnpm run build RUN pnpm run build

View file

@ -1,67 +1,15 @@
# Sudo-Flix
Sudo-Flix is a mirror of [Movie-Web](https://github.com/movie-web/movie-web) with some changes...
<p align="center"><img align="center" width="280" src="./.github/logo-dark.svg#gh-dark-mode-only"/></p> ## Running Locally
<p align="center"><img align="center" width="280" src="./.github/logo-light.svg#gh-light-mode-only"/></p> Type the following commands into your terminal / command line to run Sudo-Flix locally
<p align="center">
<img src="https://skillicons.dev/icons?i=react,vite,ts" />
<br/>
<a href="https://movie-web.github.io/links/discord"><kbd>🔵 discord</kbd></a> <a href="https://movie-web.github.io/docs"><kbd>🟢 docs</kbd></a>
</p>
<br/><br/>
# ⚡What is movie-web?
movie-web is a web app for watching movies easily.
This service works by displaying video files from third-party providers inside an intuitive and aesthetic user interface.
# 🔥Features
- Automatic saving of progress - optionally synced to an account.
- Bookmark shows or movies, keep track of what you want to watch.
- Minimalistic interface that only shows whats required - no algorithm to consume you.
## 🍄 Philosophy
This project is meant to be simple and easy to use. Keep features minimal but polished.
We do not want this project to be yet another bulky streaming site, instead it aims for minimalism.
On top of that, hosting should be as cheap and simple as possible. Just a static website with a proxy, with an optional backend if you want cross-device syncing.
Content is fetched from third parties and scraping is fully done on the client. This means that the hoster has no files or media on their server. All files are streamed directly from the third parties.
## ⚠️ Limitations
- Due to being a static site, there can be no SSR
- To keep it cheap to host, amount of proxied requests need to be kept to a minimum
- Also to keep it cheap, no content must ever be streamed through the proxy. So only streams not protected by CORS headers.
# 🧬 Running locally for development
To run locally, you must first clone the repository. After that run the following commands in the root of the repository:
```bash ```bash
git clone https://gitlab.com/itzCozi/sudo-flix.git
cd sudo-flix
git pull
pnpm install pnpm install
pnpm run dev pnpm run dev
``` ```
You have to also make an `.env` file to configure your environment. Inspire it from the content of `example.env`. ## Contributing
If you want to contribute to this project, you can fork the repository and make a pull request.
To build production files, run:
```bash
pnpm build
```
> [!TIP]
> You must use pnpm (`npm i -g pnpm`) and run NodeJS 20
# 🥔 Selfhosting
A simple guide has been written to assist in hosting your own instance of movie-web. Check it out below
|[Selfhosting guide](https://movie-web.github.io/docs)|
|---|
## 🤝 Thanks to all Contributors
This project would not be possible without our amazing contributors and the community. Thanks a lot! Keep rocking 🍻.
[![Contributors](https://contrib.rocks/image?repo=movie-web/movie-web)](https://github.com/movie-web/movie-web/graphs/contributors)

View file

@ -1,8 +1,8 @@
{ {
"name": "movie-web", "name": "sudo-flix",
"version": "4.5.0", "version": "4.5.0",
"private": true, "private": true,
"homepage": "https://github.com/movie-web/movie-web", "homepage": "https://sudo-flix.lol",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "vite build",
@ -123,8 +123,7 @@
"vite-plugin-package-version": "^1.1.0", "vite-plugin-package-version": "^1.1.0",
"vite-plugin-pwa": "^0.17.4", "vite-plugin-pwa": "^0.17.4",
"vite-plugin-static-copy": "^1.0.0", "vite-plugin-static-copy": "^1.0.0",
"vitest": "^1.1.0", "vitest": "^1.1.0"
"workbox-window": "^7.0.0"
}, },
"pnpm": { "pnpm": {
"overrides": { "overrides": {

View file

@ -302,9 +302,6 @@ devDependencies:
vitest: vitest:
specifier: ^1.1.0 specifier: ^1.1.0
version: 1.1.0(@types/node@20.10.5)(jsdom@23.0.1) version: 1.1.0(@types/node@20.10.5)(jsdom@23.0.1)
workbox-window:
specifier: ^7.0.0
version: 7.0.0
packages: packages:

View file

@ -1,10 +1,9 @@
window.__CONFIG__ = { window.__CONFIG__ = {
// The URL for the CORS proxy, the URL must NOT end with a slash! // The URL for the CORS proxy, the URL must NOT end with a slash!
// If not specified, the onboarding will not allow a "default setup". The user will have to use the extension or set up a proxy themselves VITE_CORS_PROXY_URL: "https://sudo-proxy.netlify.app", // https://mweb-proxy.up.railway.app
VITE_CORS_PROXY_URL: "",
// The READ API key to access TMDB // The READ API key to access TMDB
VITE_TMDB_READ_API_KEY: "CHANGEME", VITE_TMDB_READ_API_KEY: "eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJiZmU0OGY4NjFkY2NmMjczMzUyMDdmMWVjYmVkNjNjNiIsInN1YiI6IjY1YjNmMWI0NTk0Yzk0MDE2MzNkZDBjNSIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.GiCKswc2u9NraBbujm0ykI5G3p-K9WJoHg40jYbFv4o",
// The DMCA email displayed in the footer, null to hide the DMCA link // The DMCA email displayed in the footer, null to hide the DMCA link
VITE_DMCA_EMAIL: null, VITE_DMCA_EMAIL: null,
@ -12,8 +11,8 @@ window.__CONFIG__ = {
// Whether to disable hash-based routing, leave this as false if you don't know what this is // Whether to disable hash-based routing, leave this as false if you don't know what this is
VITE_NORMAL_ROUTER: false, VITE_NORMAL_ROUTER: false,
// The backend URL to communicate with // The backend URL to communicate with, defaults to the movie-web hosted one at backend.movie-web.app
VITE_BACKEND_URL: null, VITE_BACKEND_URL: "https://sudo-flix-backend.up.railway.app",
// A comma separated list of disallowed IDs in the case of a DMCA claim - in the format "series-<id>" and "movie-<id>" // A comma separated list of disallowed IDs in the case of a DMCA claim - in the format "series-<id>" and "movie-<id>"
VITE_DISALLOWED_IDS: "" VITE_DISALLOWED_IDS: ""

BIN
public/flixico.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View file

@ -1,5 +1,5 @@
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>movie-web</ShortName> <ShortName>sudo-flix</ShortName>
<Description>The place for your favorite movies &amp; shows</Description> <Description>The place for your favorite movies &amp; shows</Description>
<InputEncoding>UTF-8</InputEncoding> <InputEncoding>UTF-8</InputEncoding>
<Url type="text/html" template="{{ routeDomain }}/browse/?q={searchTerms}" /> <Url type="text/html" template="{{ routeDomain }}/browse/?q={searchTerms}" />

View file

@ -66,9 +66,9 @@ export default defineConfig(({ mode }) => {
"safari-pinned-tab.svg", "safari-pinned-tab.svg",
], ],
manifest: { manifest: {
name: "movie-web", name: "sudo-flix",
short_name: "movie-web", short_name: "sudo-flix",
description: "The place for your favourite movies & shows", description: "A mirror of movie-web",
theme_color: "#120f1d", theme_color: "#120f1d",
background_color: "#120f1d", background_color: "#120f1d",
display: "standalone", display: "standalone",