Skip to content

Commit

Permalink
Removed channelAliases setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed Mar 25, 2023
1 parent ace22bd commit a1a498f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 31 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"default-import": "^1.1.5",
"dotenv": "^16.0.3",
"ffbinaries": "^1.1.5",
"floatplane": "^4.4.0",
"floatplane": "^4.4.1",
"html-to-text": "^9.0.5",
"json5": "^2.2.3",
"multi-progress-bars": "^5.0.3",
Expand Down
6 changes: 0 additions & 6 deletions src/lib/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,6 @@ export const defaultSettings: Settings = {
enabled: false,
token: "",
},
channelAliases: {
"linus tech tips": "Linus Tech Tips",
"ltt supporter (og)": "Linus Tech Tips",
"ltt supporter (1080p)": "Linus Tech Tips",
"ltt supporter plus": "Linus Tech Tips",
},
subscriptions: {},
postProcessingCommand: "",
considerAllNonPartialDownloaded: false,
Expand Down
3 changes: 0 additions & 3 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ export type Settings = {
filePathFormatting: string;
extras: Extras;
artworkSuffix: string;
channelAliases: {
[key: string]: string;
};
subscriptions: {
[key: string]: SubscriptionSettings;
};
Expand Down
7 changes: 7 additions & 0 deletions src/subscriptionFetching.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ import { defaultSubChannels } from "./lib/defaults.js";
import Subscription from "./lib/Subscription.js";
import { settings, fApi } from "./lib/helpers.js";

const channelAliases = {
"linus tech tips": "Linus Tech Tips",
"ltt supporter (og)": "Linus Tech Tips",
"ltt supporter (1080p)": "Linus Tech Tips",
"ltt supporter plus": "Linus Tech Tips",
};

export const fetchSubscriptions = async (): Promise<Subscription[]> =>
(await fApi.user.subscriptions())
.map((subscription) => {
Expand Down
14 changes: 0 additions & 14 deletions wiki/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,20 +203,6 @@ Plex token generated from your login details for updating remote servers.<br>

<br>

**channelAliases**:<br>
Array of alias's used to convert subscription names to nice channel names.<br>

```json
"channelAliases": {
"linus tech tips": "Linus Tech Tips",
"ltt supporter (og)": "Linus Tech Tips",
"ltt supporter (1080p)": "Linus Tech Tips",
"ltt supporter plus": "Linus Tech Tips"
}
```

<br>

## Subscriptions:

All the Floatplane creators you are subscribed to.<br>
Expand Down

0 comments on commit a1a498f

Please sign in to comment.