-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from SamTV12345/develop
Added GPodder sync and authentication
- Loading branch information
Showing
44 changed files
with
1,731 additions
and
58 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# CLI usage | ||
|
||
The CLI can be used to update, remove, list registered users in PodFetch. You can get help anytime by typing --help/help | ||
|
||
# Usage | ||
|
||
# Get general help | ||
|
||
```bash | ||
podfetch --help | ||
``` | ||
|
||
# Get help for a specific command | ||
|
||
```bash | ||
podfetch <command> --help | ||
``` | ||
|
||
e.g. | ||
|
||
```bash | ||
podfetch users --help | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- This file should undo anything in `up.sql` | ||
DROP TABLE devices; | ||
DROP TABLE sessions; | ||
DROP TABLE subscriptions; | ||
DROP TABLE episodes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
-- Your SQL goes here | ||
CREATE TABLE devices( | ||
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, | ||
deviceid VARCHAR(255) NOT NULL, | ||
kind TEXT CHECK(kind IN ('desktop', 'laptop', 'server','mobile', 'Other')) NOT NULL, | ||
name VARCHAR(255) NOT NULL, | ||
username VARCHAR(255) NOT NULL, | ||
FOREIGN KEY (username) REFERENCES users(username) | ||
); | ||
|
||
CREATE TABLE sessions( | ||
username VARCHAR(255) NOT NULL, | ||
session_id VARCHAR(255) NOT NULL, | ||
expires DATETIME NOT NULL, | ||
PRIMARY KEY (username, session_id) | ||
); | ||
|
||
CREATE TABLE subscriptions( | ||
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, | ||
username TEXT NOT NULL, | ||
device TEXT NOT NULL, | ||
podcast TEXT NOT NULL, | ||
created Datetime NOT NULL, | ||
deleted Datetime, | ||
UNIQUE (username, device, podcast) | ||
); | ||
|
||
CREATE TABLE episodes( | ||
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, | ||
username VARCHAR(255) NOT NULL, | ||
device VARCHAR(255) NOT NULL, | ||
podcast VARCHAR(255) NOT NULL, | ||
episode VARCHAR(255) NOT NULL, | ||
timestamp DATETIME NOT NULL, | ||
guid VARCHAR(255), | ||
action VARCHAR(255) NOT NULL, | ||
started INTEGER, | ||
position INTEGER, | ||
total INTEGER, | ||
UNIQUE (username, device, podcast, episode, timestamp) | ||
); | ||
|
||
|
||
CREATE table if not exists podcast_history_items2 ( | ||
id integer primary key not null, | ||
podcast_id integer not null, | ||
episode_id TEXT not null, | ||
watched_time integer not null, | ||
date DATETIME not null, | ||
username text not null, | ||
FOREIGN KEY (podcast_id) REFERENCES podcasts(id)); | ||
|
||
INSERT INTO podcast_history_items2 SELECT * FROM podcast_history_items; | ||
|
||
DROP TABLE podcast_history_items; | ||
ALTER TABLE podcast_history_items2 RENAME TO podcast_history_items; |
Oops, something went wrong.