v0.1/code-improvements #53
			
				
			
		
		
		
	| 
						 | 
				
			
			@ -1,12 +1,8 @@
 | 
			
		|||
import axios from 'axios';
 | 
			
		||||
 | 
			
		||||
import * as cheerio from "cheerio";
 | 
			
		||||
 | 
			
		||||
import Layout from "@/components/Layout";
 | 
			
		||||
 | 
			
		||||
import Home from "@/components/Pages/Home";
 | 
			
		||||
 | 
			
		||||
import { fetchGalleryData } from '@/utils/scrape/gallery';
 | 
			
		||||
import { fetchGalleryData } from '@/utils/scrape/xvideos/gallery';
 | 
			
		||||
 | 
			
		||||
export default async function HomePage() {
 | 
			
		||||
  
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,7 +2,7 @@ import Layout from "@/components/Layout";
 | 
			
		|||
 | 
			
		||||
import Search from "@/components/Pages/Search";
 | 
			
		||||
 | 
			
		||||
import { fetchGalleryData } from "@/utils/scrape/gallery";
 | 
			
		||||
import { fetchGalleryData } from "@/utils/scrape/xvideos/gallery";
 | 
			
		||||
 | 
			
		||||
export default async function SearchPage({ params }: { params: { query: string } }) {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,10 +4,10 @@ import Layout from "@/components/Layout";
 | 
			
		|||
 | 
			
		||||
import Video from "@/components/Pages/Video";
 | 
			
		||||
 | 
			
		||||
import { fetchVideoData } from "@/utils/scrape/video";
 | 
			
		||||
 | 
			
		||||
import { decodeVideoUrlPath } from '@/utils/string';
 | 
			
		||||
 | 
			
		||||
import { fetchVideoData } from '@/utils/scrape/xvideos/video';
 | 
			
		||||
 | 
			
		||||
import { useLocale } from 'next-intl';
 | 
			
		||||
 | 
			
		||||
export default async function VideoPage({ params }: { params: { id: string } }) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,7 +3,7 @@ import { GalleryData } from '@/meta/data';
 | 
			
		|||
import axios, { AxiosError } from 'axios';
 | 
			
		||||
 | 
			
		||||
import * as cheerio from "cheerio";
 | 
			
		||||
import { getHeaders } from './headers';
 | 
			
		||||
import { getHeaders } from '../headers';
 | 
			
		||||
 | 
			
		||||
interface FetchParams {
 | 
			
		||||
    baseUrl?: string
 | 
			
		||||
| 
						 | 
				
			
			@ -4,8 +4,8 @@ import { GalleryData, VideoData } from '@/meta/data';
 | 
			
		|||
import axios, { AxiosError } from 'axios';
 | 
			
		||||
 | 
			
		||||
import * as cheerio from "cheerio";
 | 
			
		||||
import { findRelatedVideos, findVideoUrlInsideTagStringByFunctionNameAndExtension } from '../string';
 | 
			
		||||
import { getHeaders } from './headers';
 | 
			
		||||
import { findRelatedVideos, findVideoUrlInsideTagStringByFunctionNameAndExtension } from '../../string';
 | 
			
		||||
import { getHeaders } from '../headers';
 | 
			
		||||
 | 
			
		||||
interface FetchParams {
 | 
			
		||||
    baseUrl?: string
 | 
			
		||||
		Loading…
	
		Reference in New Issue