TMDb scraper feature request: support adult titles
#16
Just for curiosity

Does Kodi's team members think censorship is good?

I see that tmdb lets users to decide if they want to see search results for adult movies

Why can't Kodi's users decide for themselves?
Reply
#17
My apologies if this is partially off-topic, but I figure people with experience scraping adult titles may be able to help.

I'm using .nfo files to make the scraper find adult titles on imdb (which it usually won't do on its own). However, even with nfo's, it only works on some titles. Any idea what would cause some not to work, and if there's a solution?

Example of an .nfo file successfully pulling an adult title from imdb:
<movie>
<title>An Act of Confession</title>
</movie>
http://www.imdb.com/title/tt0068169/

Example of it not working:
<movie>
<title>All Night Long</title>
</movie>
http://www.imdb.com/title/tt0197222/
Reply
#18
Delete
Reply
#19
I dont remember if AWB had this or not, but could one make it such that not only can you see who posted last in a forum, but also what topic that post was in?

What was posted in is more important than who posted it IMO...
Reply
#20
(2017-04-05, 09:28)GyncDavid Wrote: I dont remember if AWB had this or not, but could one make it such that not only can you see who posted last in a forum, but also what topic that post was in?

What was posted in is more important than who posted it IMO...

I don't understand the intent of your message. Is it related to this thread? What is AWB?
Reply
#21
(2012-05-19, 13:37)flobbes Wrote: I remember that I read that xbmc doens't want to naturaly support adult media/scrapers, so I don't think it will be added on the official repository.

I took a look at the scraper and the api and it ist very simple to add this feature.

Just replace the following line from CreateSearchUrl:
Code:
<RegExp input="$$1" output="&lt;url&gt;http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&amp;query=\1$$4&amp;language=$INFO[language]&lt;/url&gt;" dest="3">

with the following line:
Code:
<RegExp input="$$1" output="&lt;url&gt;http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&amp;include_adult=true&amp;amp;query=\1$$4&amp;amp;language=$INFO[language]&lt;/url&gt;" dest="3">
This doesn't seem to be working for me any more?

Loads of adult titles that I know are on Themoviedb won't appear when I scrape from Kodi?
Reply
#22
(2019-01-14, 13:09)Abbaskip Wrote:
(2012-05-19, 13:37)flobbes Wrote: I remember that I read that xbmc doens't want to naturaly support adult media/scrapers, so I don't think it will be added on the official repository.

I took a look at the scraper and the api and it ist very simple to add this feature.

Just replace the following line from CreateSearchUrl:
Code:
<RegExp input="$$1" output="&lt;url&gt;http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&amp;query=\1$$4&amp;language=$INFO[language]&lt;/url&gt;" dest="3">

with the following line:
Code:
<RegExp input="$$1" output="&lt;url&gt;http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&amp;include_adult=true&amp;amp;query=\1$$4&amp;amp;language=$INFO[language]&lt;/url&gt;" dest="3">
This doesn't seem to be working for me any more?

Loads of adult titles that I know are on Themoviedb won't appear when I scrape from Kodi? 

Is there a way to do this with the new TMDB module?
Reply
#23
Use a Parsing NFO file to scrape adult titles... https://kodi.wiki/view/NFO_files/Parsing
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#24
(2019-01-14, 13:09)Abbaskip Wrote:
(2012-05-19, 13:37)flobbes Wrote: Just replace the following line from CreateSearchUrl:
 
Code:
<RegExp input="$$1" output="<url>http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&amp;query=\1$$4&amp;language=$INFO[language]</url>" dest="3">

with the following line:
Code:
<RegExp input="$$1" output="<url>http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&amp;include_adult=true&amp;amp;query=\1$$4&amp;amp;language=$INFO[language]</url>" dest="3">
This doesn't seem to be working for me any more?
Works fine for me, at least with Universal Movie Scraper on top of TMDB.
Enable debug logging and check kodi.log for actual URL being sent to api.themoviedb.org.
Reply
#25
(2012-05-19, 13:37)flobbes Wrote: I remember that I read that xbmc doens't want to naturaly support adult media/scrapers, so I don't think it will be added on the official repository.

I took a look at the scraper and the api and it ist very simple to add this feature.

Just replace the following line from CreateSearchUrl:
 
Code:
<RegExp input="$$1" output="<url>http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&amp;query=\1$$4&amp;language=$INFO[language]</url>" dest="3">

with the following line:
Code:
<RegExp input="$$1" output="<url>http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&amp;include_adult=true&amp;amp;query=\1$$4&amp;amp;language=$INFO[language]</url>" dest="3">

I'm having difficulty figuring out how to do this.  My Kodi is on a ShieldTV, and I don't know which file to edit.  Would someone mind pointing me in the right direction?  Thank you!

[Edit] Never mind, I found the tmdb.xml file.  It doesn't seem to have that exact line, but I'll dig through it and see if I can figure it out.
Reply
#26
@Renns

That change is specific to one scraper, not all scrapers. You need to edit the file for the XML scraper in the \Userdata (wiki)\Addons\metadata.themoviedb.org\ folder.
Also, it looks like that edit is no longer valid as there have been changes to that scraper and that "CreateSearchURL" has changed.

It would be easier to use a Parsing NFO file as I mention a few posts up.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#27
Thanks @Karellen 
I was hoping I wouldn't have to create a Parsing NFO file for every entry, but I guess that's the only way.  Sad
Reply
#28
(2022-05-12, 22:44)Renns Wrote: I was hoping I wouldn't have to create a Parsing NFO file for every entry
If it is more convenient, you could switch the the Python scraper and use the Search function shown in section 3... https://kodi.wiki/view/Add-on:The_Movie_Database_Python
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply

Logout Mark Read Team Forum Stats Members Help
TMDb scraper feature request: support adult titles1
This forum uses Lukasz Tkacz MyBB addons.