[REL] TGC (The Great Courses) Metadata Agent

Just wanted to post here so the new system would keep it in my list of conversations. Love this plugin.

Update

I haven’t posted here in a long time as I’ve been working on other projects. I’m just here to say that I will be continuing to maintain the code to ensure it’s working. As for adding any additional code, I will not be doing that. Besides, I can’t think of what else to add. If I get some time I’ll check troydana’s post about certain episodes not loading.

I continue to test this plug-in on new versions of PMS and adding courses to my library daily to ensure things work.

Happy 4th of July to everyone!

Best, bubonic

2 Likes

Thanks @tramp78!

@bubonic314 I honestsly can’t think of anything new that I would like it to do. If you can fix that issue with the missing episode information, that would be cool, but to be honest, just grabbing the descriptions and cover art of the course itself is as much as I was doing manually before this came along. Anything above and beyond that is just gravy.

What’s your favorite course that you’ve watched so far? And what course are you watching, if any, right now?

I really enjoyed:
Game People Play: Game Theory in Life, Business & Beyond

Scott P. Stevens of the above mentioned course was by far my favorite lecturer thus far. Humorous, witty, clear and concise. Though I must be honest, I’m a mathematician so I may be biased.

My second favorite course thus far is
Great Philosophical Debate: Free Will & Determinism.

Right now I am currently watching
European History and European Lives: 1715 to 1914

I try to watch one lecture a day, except on weekends. I also take notes into a journal so I can reference them. I try to read the companions on my tablet when time permits for each lecture, though I’m not doing that now for my present course.

I have burned my way through many of the music lectures. How to Listen to and Understand Great Music is wonderful.

Other courses I liked

Law School for Everyone
Experiencing America a Smithsonian Tour Through History (what I’m goign through now)
English Grammar Boot Camp
How Great Science Fiction Works
History of the English Language, 2nd Edition
Understanding Linguistics the Science of Language
Philosophy of Religion
Historical Jesus
Experiencing Hubble Understanding the Greatest Images of the Universe
How Colors Affect You What Science Reveals
Medical Myths Lies and Half Truths What We Think We Know May Be Hurting Us
My Favorite Universe

1 Like

I might be missing something, but quite a few courses are failing for me. For example, ā€œThe Philosopher’s Toolkit: How to Be the Most Rational Person in Any Roomā€.

In the logs, it isn’t finding the course as expected. INFO (__init__:713) - CourseURL http://www.thegreatcourses.com/courses/the-philosophers-toolkit-how-to-be-the-most-rational-person-in-any-room.html

Is this an issue with TGC vs. TGCPlus URLs? For example, this URL works.
https://www.thegreatcoursesplus.com/the-philosophers-toolkit-how-to-be-the-most-rational-person-in-any-room

Initially I figured the colon or apostrophe were creating problems (and the apostrophe doesn’t help, but can be corrected). Maybe I’m just not naming the files quite right. Can somebody point out how this format could cause problems?
../The Philosopher's Toolkit How to Be the Most Rational Person in Any Room/Season 1/The Philosopher's Toolkit How to Be the Most Rational Person in Any Room - s01e01 - How We Think and How to Think Better.mp4

I imagine it’s a stupid issue I’m missing. Any help is much appreciated.

Never mind. I forgot to install dryscrape when converting to docker containers. Knew it’d be something stupid I did.

Thanks again for the plugin, very awesome!

So I am having what is probably a very simple problem…but I cannot for the life of me figure out what I’m doing incorrectly. I have followed the naming scheme (as far as I can tell) to the letter…but I’m not able to get any of the lectures that I have to show up. Any that is except for ā€œThe Everyday Guide to Spirits and Cocktails Tastes and Traditionsā€ā€¦maybe I should take the hint.

I have the directory structure as follows on my Plex:

/Media/LECTURES/A Childrens Guide to Folklore and Wonder Tales

And the files are named:

A Children’s Guide to Folklore and Wonder Tales (TGC2411) SE18E01 - How the Camel Got His Hump - Pourquoi Tales.m4v

I don’t see what I’m missing..and it’s probably obvious to everyone else. It’s just weird that it works fine for the one lecture but not for any of the others.

Here are some screenshots:

Can anyone tell me what I’m doing incorrectly?

Here is my folder structure

TTC\Literature & English Language\Literature\A Children’s Guide to Folklore and Wonder Tales (TGC2411)

Files are named:
S01E01 - Sleeping Beauty - Once Upon a Time
S01E02 - Beauty and the Beast I - the Sleeping Prince

Put the (TGC####) in the folder name. It works there.
Make sure the folder text is copied from the webpage on the website. It works better for some reason although having the (TGC###) cancorrect that.

1 Like

Thanks for the help. I realized I was putting a @#$!@#$-ing ā€œEā€ under the Season tag…Also, I wasn’t putting the TGC#### in the folder name.

So frustratingly dumb, I wasted several hours of my Saturday…ha ha…but it’s working great now. A HUGE thanks to bubonic314 !!!

Update TGCrename2.0.sh for *nix users

I’ve updated the TGCrename script to a 2.0 version (very fancy!). It now handles a bulkfile list of directories containing lectures. Now you don’t have to copy all the files to each directory every time. Simply create a text file of your lecture directories and follow the steps in the README.md on the github page.

Found here:
TGCremame

2 Likes

I’ve found two courses recently that are having issues.

The first, https://www.thegreatcourses.com/courses/how-to-build-a-thriving-workplace-a-leaders-guide.html

Pulls in the metadata for course title and the full description. It misses the poster, and all my episodes are changed to the name of the date I downloaded the files. The genre also seems to just pull the title in.

The second, https://www.thegreatcourses.com/courses/the-art-of-investing-lessons-from-historys-greatest-traders.html

Pulls in the title for both the course and the lectures, but does not pull in the descriptions at all, nor the poster.

I’ve been following some of the other comments trying to troubleshoot, but no avail. I really appreciate how much easier this plugin has made organizing my library, so kudos to any help you can provide in getting these courses straightened out.

What are the folders named that have those lectures?

These are mine

I dont have the first one but it should be How to:
Build a Thriving Workplace A Leader’s Guide (TGC9648)
The Art of Investing Lessons from Historys Greatest Traders (TGC5000)

I have updated them to match how you have them, and no changes.

Some previous modifications I have tried are adding the (TGC####) into the folder name, typically I only rename the video files to have that.

In the past, I’ve had no problems replacing the colon in the titles with a " - ", although I have now removed it for these two specific courses. For my other courses, that hasn’t caused issue.

Another odd behaviour I’ve noticed is for the Thriving Workplace course, the episode titles are now updated to today’s date. So where yesterday they were all named 2018-09-14, today they are all 2018-09-15.

How are you naming the files? I seldom put a name on the file, just
S01E01 - description
S01E02 - description

It’s odd since the one that I have works fine. I would try removing it, re-scan the library, then put it back and rescan it. Or unmatch it and match it again.

Here’s an example of my typical formatting. This particular course has no problems:

/Great Courses/Art of Critical Decision Making (TGC5932)/(TGC5932) S01E01_ArtCriticalDecisionMaking.m4v

Here’s from the one that pulls title data, but no descriptions:

/Great Courses/The Art of Investing Lessons from Historys Greatest Traders (TGC5000)/(TGC5000)_S01E01_ArtOfInvesting.m4v

(I believe I have just taken out the apostrophe, so I’ve tried it both with and without on ā€œhistory’sā€

This course pulls the main course description, but nothing for the individual episodes, it’s also a new course released recently:

/Great Courses/How to Build a Thriving Workplace A Leader’s Guide (TGC9648)/(TGC9648)_S01E01_ThrivingWorkplace.m4v

I do have approximately 50 courses on my plex now, so I’ve generally been able to resolve all my mis-naming practices by now. These last two courses are the first problems I’ve had since last fall. I’ve added approximately 10 courses this year alone.

I don’t put anything before the episode numbers. Just:
S01E01 - Course name and episode number.

Anything after the course number is ignored unless it ends with ā€œPt1ā€ or ā€œPt2ā€
I don’t use underscores because I like to stick to what Plex suggests.
The (TGC1234) goes after the course name in the folder but you can also leave it off and it may work better.
You might also try to pull the folder out, rescan, then put it back or maybe go the unmatch route.
The one you have that doesn’t work isn’t one I have so I can’t test it but I may play around with renaming some dummy files and see what happens.

1 Like

One other thing you can try, the plugin looks for what the website calls the course. It also can look at the URL of the page the course is on and match the end of that. So try renaming the folder to
the-art-of-investing-lessons-from-historys-greatest-traders
I tried it and it works.

I’ve tried renaming the folders, but doesn’t appear to make a difference.

I’ve also repeatedly tried ā€˜fix match’ for both the stated courses and it finds the appropriate class there. I’ve tried forcing a refresh of the metadata as well.