mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-29 14:56:06 +00:00
rename scrapers to providers
This commit is contained in:
parent
1e3e8d3749
commit
1adfffca8d
|
@ -41,5 +41,6 @@ Check out [this project's issues](https://github.com/JamesHawkinss/movie-web/iss
|
||||||
- [ ] Add github and discord top right
|
- [ ] Add github and discord top right
|
||||||
- [ ] Store watched percentage
|
- [ ] Store watched percentage
|
||||||
- [ ] Implement movie + series view
|
- [ ] Implement movie + series view
|
||||||
- [ ] Add scraper stream method
|
- [ ] Add provider stream method
|
||||||
- [ ] Better looking error boundary
|
- [ ] Better looking error boundary
|
||||||
|
- [ ] sort search results so they aren't sorted by provider
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { Icons } from "./Icon";
|
||||||
import { TextInputControl } from "./TextInputs/TextInputControl";
|
import { TextInputControl } from "./TextInputs/TextInputControl";
|
||||||
|
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { MWMediaType, MWQuery } from "scrapers";
|
import { MWMediaType, MWQuery } from "providers";
|
||||||
|
|
||||||
export interface SearchBarProps {
|
export interface SearchBarProps {
|
||||||
buttonText?: string;
|
buttonText?: string;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { getProviderFromId, MWMedia, MWMediaType } from "scrapers";
|
import { getProviderFromId, MWMedia, MWMediaType } from "providers";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import { Icon, Icons } from "components/Icon";
|
import { Icon, Icons } from "components/Icon";
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { MWMedia } from "scrapers";
|
import { MWMedia } from "providers";
|
||||||
import { MediaCard } from "./MediaCard";
|
import { MediaCard } from "./MediaCard";
|
||||||
|
|
||||||
export interface WatchedMediaCardProps {
|
export interface WatchedMediaCardProps {
|
||||||
|
|
|
@ -3,16 +3,16 @@ import {
|
||||||
MWMediaType,
|
MWMediaType,
|
||||||
MWPortableMedia,
|
MWPortableMedia,
|
||||||
MWQuery,
|
MWQuery,
|
||||||
} from "scrapers/types";
|
} from "providers/types";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
searchTheFlix,
|
searchTheFlix,
|
||||||
getDataFromSearch,
|
getDataFromSearch,
|
||||||
turnDataIntoMedia,
|
turnDataIntoMedia,
|
||||||
} from "scrapers/list/theflix/search";
|
} from "providers/list/theflix/search";
|
||||||
|
|
||||||
import { getDataFromPortableSearch } from "scrapers/list/theflix/portableToMedia";
|
import { getDataFromPortableSearch } from "providers/list/theflix/portableToMedia";
|
||||||
import { MWProviderMediaResult } from "scrapers";
|
import { MWProviderMediaResult } from "providers";
|
||||||
|
|
||||||
export const theFlixScraper: MWMediaProvider = {
|
export const theFlixScraper: MWMediaProvider = {
|
||||||
id: "theflix",
|
id: "theflix",
|
|
@ -1,5 +1,5 @@
|
||||||
import { CORS_PROXY_URL } from "mw_constants";
|
import { CORS_PROXY_URL } from "mw_constants";
|
||||||
import { MWMediaType, MWPortableMedia } from "scrapers/types";
|
import { MWMediaType, MWPortableMedia } from "providers/types";
|
||||||
|
|
||||||
const getTheFlixUrl = (media: MWPortableMedia, params?: URLSearchParams) => {
|
const getTheFlixUrl = (media: MWPortableMedia, params?: URLSearchParams) => {
|
||||||
if (media.mediaType === MWMediaType.MOVIE) {
|
if (media.mediaType === MWMediaType.MOVIE) {
|
|
@ -1,5 +1,5 @@
|
||||||
import { CORS_PROXY_URL } from "mw_constants";
|
import { CORS_PROXY_URL } from "mw_constants";
|
||||||
import { MWMediaType, MWProviderMediaResult, MWQuery } from "scrapers";
|
import { MWMediaType, MWProviderMediaResult, MWQuery } from "providers";
|
||||||
|
|
||||||
const getTheFlixUrl = (type: "tv-shows" | "movies", params: URLSearchParams) =>
|
const getTheFlixUrl = (type: "tv-shows" | "movies", params: URLSearchParams) =>
|
||||||
`https://theflix.to/${type}/trending?${params}`;
|
`https://theflix.to/${type}/trending?${params}`;
|
|
@ -1,6 +1,6 @@
|
||||||
import { WatchedMediaCard } from "components/media/WatchedMediaCard";
|
import { WatchedMediaCard } from "components/media/WatchedMediaCard";
|
||||||
import { SearchBarInput } from "components/SearchBar";
|
import { SearchBarInput } from "components/SearchBar";
|
||||||
import { MWMedia, MWMediaType, MWQuery, SearchProviders } from "scrapers";
|
import { MWMedia, MWMediaType, MWQuery, SearchProviders } from "providers";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { ThinContainer } from "components/layout/ThinContainer";
|
import { ThinContainer } from "components/layout/ThinContainer";
|
||||||
import { SectionHeading } from "components/layout/SectionHeading";
|
import { SectionHeading } from "components/layout/SectionHeading";
|
||||||
|
|
Loading…
Reference in a new issue