Skip to content

Commit

Permalink
[MOD] Working on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjulianschwarz committed Sep 11, 2021
1 parent 26dba84 commit 3c6f7b4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,7 @@ The numbers in "[]" are the issue numbers associated with the fix or feature.
- creates podcast note
- replaces markdown link with link to podcast note

*1.2.0*:
- Podcast Note is now working on Obsidian mobile


14 changes: 12 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export default class PodcastNote extends Plugin {

async onload() {
console.log('loading plugin PodcastNote');

await this.loadSettings();

this.addSettingTab(new PodcastNoteSettingTab(this.app, this));
Expand Down Expand Up @@ -75,6 +74,17 @@ export default class PodcastNote extends Plugin {
await this.saveData(this.settings);
}

async getAirrQuoteTranscript(url){
let html = await this.getHtml(url);
let root = this.getParsedHtml(html);
let airrQuoteTranscript = root.querySelector(".quote_contextContainer__2afpx");
console.log(root);
}

async getHtml(url){
return await request({url: url, method: "GET"});
}

async addNotesFromList() {

let editor = this.getEditor();
Expand Down Expand Up @@ -108,7 +118,7 @@ export default class PodcastNote extends Plugin {
new Notice("Loading Podcast Info");
if (this.checkPodcastURL(url)){
try {
let html = await request({url: url, method: "GET"});
let html = await this.getHtml(url);
let root = this.getParsedHtml(html);
return this.getMetaDataForPodcast(root, url);
} catch (reason) {
Expand Down

0 comments on commit 3c6f7b4

Please sign in to comment.