rename scrapers to providers

This commit is contained in:
Jelle van Snik 2022-02-17 18:36:39 +01:00
parent 1e3e8d3749
commit 1adfffca8d
11 changed files with 12 additions and 11 deletions

View File

@ -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

View File

@ -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;

View File

@ -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";

View File

@ -1,4 +1,4 @@
import { MWMedia } from "scrapers";
import { MWMedia } from "providers";
import { MediaCard } from "./MediaCard";
export interface WatchedMediaCardProps {

View File

@ -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",

View File

@ -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) {

View File

@ -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}`;

View File

@ -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";