Skip to content

Commit

Permalink
commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
philhk committed Oct 5, 2022
0 parents commit 785186e
Show file tree
Hide file tree
Showing 20 changed files with 2,344 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/node_modules
/dist
/temp
/ffmpeg/*
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[![License: CC BY-NC-SA 4.0](https://img.shields.io/badge/license-CC%20BY--NC--SA%204.0-blue)](https://creativecommons.org/licenses/by-nc-sa/4.0/)

<h1 align="center">Hidive Downloader</h1>

# Features
- User friendly (Completely CLI controlled)
- Download episodes simultaneously
- Search function
- Video files are converted to MKV lossless
- Subtitles are added to MKV

# How to use
- Download the latest [release](https://github.com/philhk/hidive-downloader/releases)
- Extract the content to a folder
- Run `npm install` > `npm run build` in a terminal
- After that you can run the application with `npm run start` in a terminal

# Example Video
https://user-images.githubusercontent.com/66958695/194079411-073d6dfe-6886-4d64-83bb-2679fe3a4f6a.mp4
Binary file added db/database.db
Binary file not shown.
32 changes: 32 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "hidive-downloader",
"main": "index.js",
"scripts": {
"start:dev": "ts-node-esm src/main.ts",
"start": "node dist/main.js",
"build:tsc": "tsc",
"build": "npm run build:tsc"
},
"type": "module",
"author": "PhilHK",
"devDependencies": {
"@types/async": "^3.2.15",
"@types/better-sqlite3": "^7.6.0",
"@types/cli-progress": "^3.11.0",
"@types/ffmpeg": "^1.0.4",
"@types/fs-extra": "^9.0.13",
"@types/inquirer": "^9.0.2",
"@types/node": "^18.8.0",
"ts-node": "^10.9.1",
"typescript": "^4.8.4"
},
"dependencies": {
"async": "^3.2.4",
"axios": "^0.27.2",
"better-sqlite3": "^7.6.2",
"cli-progress": "^3.11.2",
"fs-extra": "^10.1.0",
"inquirer": "^9.1.2",
"m3u8-parser": "^6.0.0"
}
}
17 changes: 17 additions & 0 deletions sql/createDatabase.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-- SQLite
DROP TABLE IF EXISTS Account;
DROP TABLE IF EXISTS ApiKey;
CREATE TABLE Account (
id INTEGER PRIMARY KEY AUTOINCREMENT,
email VARCHAR(50) NOT NULL,
password VARCHAR(50) NOT NULL,
userId INTEGER,
profileId INTEGER,
deviceId VARCHAR(50),
visitId VARCHAR(50)
);
CREATE TABLE ApiKey (
id INTEGER PRIMARY KEY AUTOINCREMENT,
key VARCHAR(50) NOT NULL
);
INSERT INTO ApiKey (key) VALUES ('508efd7b42d546e19cc24f4d0b414e57e351ca73');
Loading

0 comments on commit 785186e

Please sign in to comment.