我的媒体播放库 libdrive

Look at this beautiful website!
It's my media library!
什么是Libdrive
一个可以从TMDb自动识别电影、电视剧、漫画,并且产生海报、简单介绍的谷歌硬盘文件可视管理器
You can build the catalog like the Movies or TV-Shows & Animes, Whatever you like.
I get this amazing tool from libdrive.Thanks for the author Elias Benbourenane.
我是如何创建自己的Libdrive的
就像每一段代码旅程一样,我在创建自己的Libdrive时也遇到了不少麻烦。
You can find setup here by author.
And you can follow me too.
Prerequisites
A Google Developers Console API lient credentials:
search
console.clould.googlein google then open it.Click
Api & Severice, thenclick credentials.Then click the
Enable the Drive APIbuttonName the project anything you want, then click
NextWait for the page titled
Configure your OAuth clientto showFrom the dropdown menu, select
Web ServerThen under the
Authorized redirect URIsfield, put the following URL:https://config.libdrive.tkKeep note of the
client_idandclient_secretA TMDB API key
OPTIONAL: Cloudflare worker.
A server.
Setup
build locally:
Clone the libDrive server repository with
git clone https://github.com/libDrive/server.gitClone the libDrive web repository with
git clone https://github.com/libDrive/web.gitOpen a terminal in the cloned
webfolderRun the following:
yarn installyarn run build
- Copy the generated
/buildfolder into the root of the clonedserverfolder - Done!
go to https://config.libdrive.tk and go through the sections, filling in the empty fields
Save the config into a file named
config.jsonin the directory of the libDrive serverrun
python3 -m pip install -r requirements.txtin the server's directoryNow your server is ready, to start it run
python3 main.pyfrom the directory of the libDrive server
the server is now up and run, but it's running only on your machine, the address is 127.0.0.1:8000.if you wanna share your server publicly, follow this setups:
- run the flowing in terminal
nohup gunicorn -w 4 -b 0.0.0.0:8000 main:app
Structure
Movies
ROOT_DIRECTORY
MOVIE_1.mp4
MOVIE_2.mp4
- MOVIE_3.mp4
- MOVIE_4.mp4
or
- ROOT_DIRECTORY
- MOVIE_1.mp4
- SUB_FOLDER_1
- MOVIE_2.mp4
- SUB_FOLDER_2
- SUB_SUB_FOLDER_1
- MOVIE_3.mp4
- MOVIE_4.mp4
TV-Shows
- ROOT_DIRECTORY
- SHOW_1
- SEASON_1
- EPISODE_1.mp4
- EPISODE_2.mp4
- EPISODE_3.mp4
- SEASON_2
- EPISODE_1.mp4
- EPISODE_2.mp4
- EPISODE_3.mp4
- SHOW_2
- SEASON_1
- EPISODE_1.mp4
- EPISODE_2.mp4
- EPISODE_3.mp4
- SEASON_2
- EPISODE_1.mp4
- EPISODE_2.mp4
- EPISODE_3.mp4
Some tips
- If there nothing show on your website, pls check the googledrive api allowed.
- there must a
SEASONfolder in TV-shows.
Down! Have fun!