SpaceK33z / web-to-plex

🚠 Adds a button on various movie & TV show sites to open it in Plex.
Other
122 stars 18 forks source link

Issue: Charging CouchPotato does not work #168

Open sp00kie opened 4 years ago

sp00kie commented 4 years ago
  1. Connect to Plex.
  2. Select server.
  3. Enter couchpotato settings.
  4. save settings.
  5. Go to IMDB and find a movie already in the library.
  6. Instead of a "View in Plex" link there is a "Download" button.

It doesn't matter how long you wait. I checked after 12 hrs and refreshed the imdb page and it still had a "Download" button

Ephellon commented 4 years ago

Hi. CouchPotato does not cache (charge) found media correctly, see #162

Alright, got the movies to be added again. But, the charging statement does not work (still).

Charging — Web to Plex's "caching" ability; it grabs all movies/shows that the user has already added via their manager(s)

sp00kie commented 4 years ago

Sorry, had no idea this was a dupe. I did search! Also, thanks for the great extension.

Ephellon commented 4 years ago

No problem. I'll keep this as a separate ticket, I'll focus on CouchPotato as a whole in #162

sp00kie commented 4 years ago

I don't know if this is of any help to you but there is an open source project called ombi that pulls data from plex for basically the same use as your plugin.

Ephellon commented 4 years ago

Yes, Ombi support was added to this project already.

Ephellon commented 4 years ago

Wait, what version are you using?

Ephellon commented 4 years ago

Current version is v4.1.2.4

Ephellon commented 4 years ago

@sp00kie ↑

sp00kie commented 4 years ago

hi. I'm using version 3.4. That's what was on the chrome store like 4 days ago. ok I found version 4.1 and installed it. It works perfectly for movies. I'm not sure if its pulling data from couchpotato or plex. My problem with medusa is that it forces me to select one folder. The problem is that my tv shows are on 3 different hdds.

Ephellon commented 4 years ago

Hi @sp00kie,

  1. Pulling: It's pulling from CouchPotato (charging)
  2. Multiple folders: I have a similar setup; I've already started implementing the Ctrl Click method for adding multiple folders (in the upcoming version)
  3. Ombi: I've already added their code, not sure what you mean. As far as getting data from Plex, it currently works just fine; if you're using Ombi, the extension doesn't bother doing anything other than telling Ombi to add the item
sp00kie commented 4 years ago

yeah the current version seems to be pulling data from everywhere properly. Sorry for bothering you with the old version. I do have a different problem with the current version though. It changes the layout of websites its working on. I have attached some examples. It makes my ombi unusable because I can't access settings. The second screenshot is get info on a movie in plex.

Screenshot_3 Screenshot_2 Screenshot_1 Screenshot_17
Ephellon commented 4 years ago

Try reinstalling the extension, see #165

sp00kie commented 4 years ago

ok so I reinstalled the extension and then restarted chrome. Whenever I open an imdb page, the extension opens its settings page and switches to it. If I switch back to imdb and refresh, it will switch back to the extension settings page. If I have closed it, it will reopen it.

All pages look fine. Signing into plex and saving settings results in my ombi page being broken like in the screenshot but the imdb page is still fine. Selecting imdb in default sites and refreshing results in the imdb page being broken including the web to plex button as well. I've tried uninstalling and reinstalling several times with the same results. I also tried doing it with all my other extensions disabled. Exactly the same result.

Also, the firefox and opera extension links on the page below result in it not being found. https://github.com/SpaceK33z/web-to-plex

I wanted to see if I could get it working properly in another browser.

Ephellon commented 4 years ago
Sending me the errors (click to expand) 1. Please enable `Developer Mode` in Web to Plex's settings, and navigate to IMDb or Ombi 2. Press `Ctrl` `Shift` `J` 3. Select the `Web to Plex` context from the context drop-down (left-hand side) > ![image](https://user-images.githubusercontent.com/8632548/77867707-9d683580-71f5-11ea-8d6c-579eac5e67c0.png) 4. Open the `Console settings` (right-hand side) 5. Ensure the `Selected context only` box is checked > ![image](https://user-images.githubusercontent.com/8632548/77867762-def8e080-71f5-11ea-9913-b0798bb7d26d.png) 6. Please send a screenshot of the page and error messages, like so ("The Hunt (2020)" on IMDb) → > ![image](https://user-images.githubusercontent.com/8632548/77867913-7e1dd800-71f6-11ea-991a-53ec4adff012.png) > ![image](https://user-images.githubusercontent.com/8632548/77867905-72caac80-71f6-11ea-814a-3e013b0fdc9c.png)

Response to your last post (click to expand) 1. Settings will nag you until you save them (getting rid of that) 2. I'll investigate with a fresh install 3. Opera works in dev mode only. Firefox was disabled (see #167)
Ephellon commented 4 years ago

@sp00kie ↑

Thanks for your help so far. I haven't been able to recreate the errors yet, could you take a look at the post above so I can figure out what's wrong?

sp00kie commented 4 years ago

ok that is really weird. As soon as I turn on developer mode and refresh the IMDB page the format is fine. I'm gonna do it without refreshing the page.

Ephellon commented 4 years ago

You won't be able to, the errors only propagate with Developer mode enabled

Ephellon commented 4 years ago

Thanks for letting me know though... I'll see what's different with Developer mode

Ephellon commented 4 years ago

It should've just made error messages visible...

Ephellon commented 4 years ago

Alright, for now I'll assume remote styles are the problem, that's the only explanation

sp00kie commented 4 years ago

here is a screenshot. hope this helps. This is how it looks with the developer mode enabled but not refreshing the page.

Screenshot_5
sp00kie commented 4 years ago

and this is how it looks with the page refreshed after the developer mode has been enabled.

Screenshot_6
Ephellon commented 4 years ago

Got it! I'm able to reproduce the error now.

Ephellon commented 4 years ago

Fixed! Thanks @sp00kie

Ephellon commented 4 years ago

Unfortunately, I was in the middle of creating a new version, so I won't be able to update the extension globally.

If you'd like the fix, you can do one of the following:

  1. Keep Developer mode enabled (highly recommended)
  2. Install this ZIP — see installing source code packages1

1 This package has not been thoroughly tested, and contains several features not meant to be available yet. It will break when attempting to use said features.

sp00kie commented 4 years ago

Well on my end, Ombi and Couchpotato are fixed but IMDB looks exactly the same. Running version 4.2

Screenshot_9
Ephellon commented 4 years ago

If you don't mind, change the button shape to Box

sp00kie commented 4 years ago

When I change it to square, visually IMDB looks fine even when developer mode is disabled but there is no web-to-plex button that I can see on the page.

Ephellon commented 4 years ago

It's at the top of the page, in the center image

sp00kie commented 4 years ago

omg yeah its right there. The page looks fine and it works. AWESOME!!!

Ephellon commented 4 years ago

No problems noticed. Will close in 4 days

Ephellon commented 4 years ago

Not currently in build, but will leave open as reminder