mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-29 14:06:05 +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
|
||||
- [ ] Store watched percentage
|
||||
- [ ] Implement movie + series view
|
||||
- [ ] Add scraper stream method
|
||||
- [ ] Add provider stream method
|
||||
- [ ] 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 { useState } from "react";
|
||||
import { MWMediaType, MWQuery } from "scrapers";
|
||||
import { MWMediaType, MWQuery } from "providers";
|
||||
|
||||
export interface SearchBarProps {
|
||||
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 { Icon, Icons } from "components/Icon";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { MWMedia } from "scrapers";
|
||||
import { MWMedia } from "providers";
|
||||
import { MediaCard } from "./MediaCard";
|
||||
|
||||
export interface WatchedMediaCardProps {
|
||||
|
|
|
@ -3,16 +3,16 @@ import {
|
|||
MWMediaType,
|
||||
MWPortableMedia,
|
||||
MWQuery,
|
||||
} from "scrapers/types";
|
||||
} from "providers/types";
|
||||
|
||||
import {
|
||||
searchTheFlix,
|
||||
getDataFromSearch,
|
||||
turnDataIntoMedia,
|
||||
} from "scrapers/list/theflix/search";
|
||||
} from "providers/list/theflix/search";
|
||||
|
||||
import { getDataFromPortableSearch } from "scrapers/list/theflix/portableToMedia";
|
||||
import { MWProviderMediaResult } from "scrapers";
|
||||
import { getDataFromPortableSearch } from "providers/list/theflix/portableToMedia";
|
||||
import { MWProviderMediaResult } from "providers";
|
||||
|
||||
export const theFlixScraper: MWMediaProvider = {
|
||||
id: "theflix",
|
|
@ -1,5 +1,5 @@
|
|||
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) => {
|
||||
if (media.mediaType === MWMediaType.MOVIE) {
|
|
@ -1,5 +1,5 @@
|
|||
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) =>
|
||||
`https://theflix.to/${type}/trending?${params}`;
|
|
@ -1,6 +1,6 @@
|
|||
import { WatchedMediaCard } from "components/media/WatchedMediaCard";
|
||||
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 { ThinContainer } from "components/layout/ThinContainer";
|
||||
import { SectionHeading } from "components/layout/SectionHeading";
|
||||
|
|
Loading…
Reference in a new issue