Skip to content

Commit

Permalink
Didn't need the cf_clearance cookie, so removed it from the settings.…
Browse files Browse the repository at this point in the history
… Also, updated code to get the MEGA link since they made a code change.
  • Loading branch information
fireshaper committed Oct 1, 2020
1 parent 4a0811a commit 3256f6d
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 27 deletions.
7 changes: 6 additions & 1 deletion Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Omnibus
public partial class Form1 : Form
{

private String version = "1.4.8";
private String version = "1.4.8.1";
private String url = "https://getcomics.info/?s=";
private int cancelled = 0;
private bool isDownloading = false;
Expand Down Expand Up @@ -219,6 +219,11 @@ private async void btnDownload_ClickAsync(object sender, EventArgs e)

var htmlNodes = doc.DocumentNode.SelectSingleNode("//a[@title='Mega Link']");

if (htmlNodes == null) //Check to see if they just renamed the Node
{
htmlNodes = doc.DocumentNode.SelectSingleNode("//a[@title='MEGA']");
}

if (htmlNodes == null)
{
foreach(HtmlNode node1 in doc.DocumentNode.SelectNodes("//a"))
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ Download the latest release, unzip, and run.

## Setup
1. Go to [GetComics.info](https://getComics.info) and make sure the page loads fully
2. You need to get two cookies from your browser: __cfduid and cf_clearance
2. You need to get the __cfduid cookie from your browser
1. If you are using Chrome you can go into the Developer Tools > Application and see the Cookies there
2. If you are using Firefox you can go under the Web Developer > Storage Inspector and see the Cookies there
3. If you are using another browser, just search Google for how to view cookies in that browser
3. Get your UserAgent string
1. A site like https://www.whatismybrowser.com/detect/what-is-my-user-agent works fine
4. Open Omnibus and go to the Settings (the gear button)
5. Paste in your full UserAgent string and the info from the two cookies
5. Paste in your full UserAgent string and the info from the cookie
6. Click Save

## Usage
Expand Down
22 changes: 0 additions & 22 deletions Settings.Designer.cs

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

2 changes: 0 additions & 2 deletions Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ private void Settings_Load(object sender, EventArgs e)

tbUserAgent.Text = Properties.Settings.Default.UserAgent;
tbCfduid.Text = Properties.Settings.Default.cfduid;
tbCF_clearance.Text = Properties.Settings.Default.cf_clearance;
}

private void btnSave_Click(object sender, EventArgs e)
Expand All @@ -50,7 +49,6 @@ private void btnSave_Click(object sender, EventArgs e)
Properties.Settings.Default.cfduid = tbCfduid.Text;
Properties.Settings.Default.Save();

Properties.Settings.Default.cf_clearance = tbCF_clearance.Text;
Properties.Settings.Default.Save();

this.Close();
Expand Down
Binary file modified bin/Debug/Omnibus.exe
Binary file not shown.
Binary file modified bin/Debug/Omnibus.pdb
Binary file not shown.
Binary file modified obj/Debug/Omnibus.csproj.GenerateResource.cache
Binary file not shown.
Binary file modified obj/Debug/Omnibus.exe
Binary file not shown.
Binary file modified obj/Debug/Omnibus.pdb
Binary file not shown.
Binary file modified obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
Binary file not shown.

0 comments on commit 3256f6d

Please sign in to comment.