Help talk:WikiFlix

From Wikidata
Jump to navigation Jump to search

Data modeling to differentiate between trailers and full P10[edit]

On Wikidata:WikiProject Movies I've tried to promote the following data modeling approach to clearly distinguish between video (P10) files on Wikimedia Commons that are trailers, and files that are full length movies. I've used this in my pilot to filter for only for the films that have full length view options.

Just FYI, maybe you use a different logic. Spinster 💬 15:00, 12 January 2024 (UTC)[reply]

I have implemented the object has role (P3831)trailer (Q622550) part, example. --15:28, 13 January 2024 (UTC)

Translation request[edit]

Hi, I asked to make this page translatable there : https://www.wikidata.org/wiki/Wikidata:Translators%27_noticeboard#Make_Help:WikiFlix_Translatable Keep up the good work ! :-) Jona (talk) 09:15, 23 January 2024 (UTC)[reply]

Bug Reports[edit]

Currently there's a PHP include error on the request to api.php after clicking on a movie. How should bugs be reported? Dmertl (talk) 18:18, 23 January 2024 (UTC)[reply]

Please file bug reports and feature requests here. --Magnus Manske (talk) 14:00, 24 January 2024 (UTC)[reply]

Userstyle[edit]

Fun project!

I just had a quick go at customizing a little bit the homepage’s CSS, just the thumbnails area really. I think it gives it a little bit more the “streaming service” feel? It’s done as a userstyle, so some of the lines are just resets of currently set properties, not the tidiest code. Here are my changes for reference:

.h3, h3 {
	margin-top: 2rem;
	margin-bottom: 1.5rem;
}
	
.row > div[style*='overflow'] {
	overflow: visible !important; /*reset*/
}

.section-single-row {
	overflow-x: auto;
	gap: 15px;
	margin-left: -100px;
	margin-right: -100px;
	padding-left: 100px;
	padding-right: 100px;
	mask-image:	linear-gradient(to right, transparent 50px, black 100px), linear-gradient(to left, transparent 50px, black 100px);
	mask-composite: intersect;
	padding-bottom: 25px;
}
	
.movie-container {
	width: initial !important; /*reset*/
	height: initial !important; /*reset*/
	max-width: initial !important; /*reset*/
	min-width: initial !important; /*reset*/
	margin-right: initial !important; /*reset*/
}

.movie-container .thumbnail-container:hover {
  opacity: 1 !important;
}

.movie-container .thumbnail-container {
	height: initial !important; /*reset*/
	display: flex;
	flex-direction: column;
	gap: .5rem;
}
	
.movie-container .thumbnail-container a {
	overflow: hidden;
	width: 200px;
	aspect-ratio: 4/3;
	height: auto;
	border-radius: 20px;
}

.movie-container .thumbnail-container .wiki_thumbnail {
	object-fit: cover;
	transition: transform .75s, filter .5s;
	height: 100%;
	width: 100%;
}

.movie-container .thumbnail-container a:hover .wiki_thumbnail,
.movie-container .thumbnail-container a:focus-visible .wiki_thumbnail {
	transform: scale(1.05);
	filter: brightness(1.2);
}

.movie-container .thumbnail-container .legend {
	position: initial; /*reset*/
	left: initial; /*reset*/
	right: initial; /*reset*/
	bottom: initial; /*reset*/
	background-color: initial; /*reset*/
	opacity: .6;
	color: white;
	transition: opacity .25s;
}
	
.movie-container .thumbnail-container .legend div {
	opacity: .6;
}

	
.movie-container .thumbnail-container:hover .legend {
	opacity: .6 !important; /*reset*/
}
	
.movie-container .thumbnail-container a:hover + .legend,
.movie-container .thumbnail-container a:focus-visible + .legend {
	opacity: 1 !important;
}

If someone tries it let me know what you think! :) Nclm (talk) 21:48, 23 January 2024 (UTC)[reply]

Nice! I have applied these best as I can. Not entirely happy with the left/right sizing which causes row to look short, and sometimes the left "shading" is ,issing, but I'll work on it. Already deployed. Magnus Manske (talk) 12:02, 24 January 2024 (UTC)[reply]
Ooh great that you implemented it!! I think if you remove the “width: 100%” from “div.section-single-row” you can get a little better alignment? The idea is that all the thumbnails in the main centre column are fully visible, and the overflown thumbnails fade out in the left and right margins. Nclm (talk) 17:38, 24 January 2024 (UTC)[reply]
Done, and yes it looks better, thanks! Magnus Manske (talk) 10:31, 25 January 2024 (UTC)[reply]
Just realised some styles are missing on the category pages (like https://wikiflix.toolforge.org/#/section/17517379/31). At least “gap:15px” on “.section-multi-row” and “width:200px” on “.legend” :) Nclm (talk) 09:07, 26 January 2024 (UTC)[reply]
THanks, applied! Magnus Manske (talk) 09:54, 31 January 2024 (UTC)[reply]

Internet Archive movies without PD mark on Wikidata[edit]

@Spinster: There are thousands of items avout films that have an Internet Archive statement (as in, a video file there), but do not have a "copyright status: public domain" statement. Should I automatically add these to WikiFlix as well? I would think so, as one can just play them from the Internet Archive, and we should be able to trust IA to not blatantly violate copyright with these. I will add them unless I hear otherwise. Magnus Manske (talk) 09:52, 31 January 2024 (UTC)[reply]

Adding them now, can remove again if necessary. --Magnus Manske (talk) 12:24, 31 January 2024 (UTC)[reply]
Aaaaand removed again, too many trailers :-( Magnus Manske (talk) 12:47, 31 January 2024 (UTC)[reply]
I have written a script thank can annotate IA video IDs with the runtime (in minutes) on IA. I am now adding those to WikiFlix that have similar IA runtime to the duration property of the item. Movie count went up ~1K to ~3600. --Magnus Manske (talk) 11:54, 2 February 2024 (UTC)[reply]

It's not showing films on Wikimedia Commons[edit]

Thanks for this great tool. It's not showing films in this alternative UI that shows only files on WMC: Commons:Category:Videos of films by year.

Could you please make it also show videos that are in that category? These categories can also be used to determine the films' years if there is no Wikidata item for the film that has the year set. A few of the ones missing are also set on the Wikidata item like Q56521840 and I don't know why these aren't shown either. If only Wikidata data can be used maybe one could somehow sync the cat with Wikidata so they show up in Wikiflix as well. Prototyperspective (talk) 18:04, 5 February 2024 (UTC)[reply]

Thanks for pointing these out! Right now I am only using Wikidata items as "key" for movies, and it would be difficult to change that. Besides, Wikidata items are how I can categorize etc films, so even if I could add these files, they would be hard to find on WikiFlix. The reson Paywall: The Business of Scholarship (Q56521840) doesn't show up in WikiFlix is that I have to additionaly filter video (P10) with object has role (P3831):full video available on Wikimedia Commons (Q89347362) to avoid presenting a lot of films that are just trailers. I have now added the qualifier to that video in the item, so it show up in WikiFlix within the hour. --Magnus Manske (talk) 13:23, 6 February 2024 (UTC)[reply]
I have made a Mix'n'match catalog with all movies from that category tree that were not already used on Wikidata. This is for easier matching with existing items, and to create new ones. --Magnus Manske (talk) 15:18, 6 February 2024 (UTC)[reply]

More potential movies[edit]

Please expand the list of potential film lists, and add movies to Wikidata as appropriate:

Magnus Manske (talk) 10:07, 9 February 2024 (UTC)[reply]