In XBMC 11.0, have created a smart playlist with very many rules (around 1k), they look similar to this:
Code:
<match>one</match>
<rule field="title" operator="is">Citizen Kane</rule>
<rule field="title" operator="is">Vertigo</rule>
<rule field="title" operator="is">The Rules of the Game</rule>
<rule field="title" operator="is">2001: A Space Odyssey</rule>
<rule field="title" operator="is">The Godfather</rule>
<rule field="title" operator="is">8½</rule>
<rule field="title" operator="is">Seven Samurai</rule>
<rule field="title" operator="is">The Searchers</rule>
<rule field="title" operator="is">Singin' in the Rain</rule>
<rule field="title" operator="is">Battleship Potemkin</rule>
<rule field="title" operator="is">Tokyo Story</rule>
<rule field="title" operator="is">Sunrise</rule>
<rule field="title" operator="is">Lawrence of Arabia</rule>
...However, the SQL is truncated as seen in this debug log:
Code:
... ERROR: SQL: SQL error or missing database
Query: select * from movieview WHERE (c00 LIKE '"Title"') OR (c00 LIKE '"Citizen Kane"') OR (c00 LIKE '"Vertigo"') OR (c00 LIKE
'"The Rules of the Game"') OR (c00 LIKE '"2001: A Space Odyssey"') OR (c00 LIKE '"The Godfather"') OR (c00 LIKE '"8½"') OR (c00 LIKE '"Seven Samurai"') OR (c00 LIKE '"The S
earchers"') OR (c00 LIKE '"Singin'' in the Rain"') OR (c00 LIKE '"Battleship Potemkin"') OR (c00 LIKE '"Tokyo Story"') OR (c00 LIKE '"Sunrise"') OR (c00 LIKE '"Lawrence of
Arabia"') OR (c00 LIKE '"Bicycle Thieves"') OR (c00 LIKE '"The Godfather: Part II"') OR (c00 LIKE '"Casablanca"') OR (c00 LIKE '"L''Atalante"') OR (c00 LIKE '"Raging Bull"'
) OR (c00 LIKE '"Rashomon"') OR (c00 LIKE '"The Passion of Joan of Arc"') OR (c00 LIKE '"Touch of Evil"') OR (c00 LIKE '"Taxi Driver"') OR (c00 LIKE '"Some Like It Hot"') O
R (c00 LIKE '"La Dolce Vita"') OR (c00 LIKE '"Grand Illusion"') OR (c00 LIKE '"City Lights"') OR (c00 LIKE '"The Third Man"') OR (c00 LIKE '"Apocalypse Now"') OR (c00 LIKE
'"Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb"') OR (c00 LIKE '"Psycho"') OR (c00 LIKE '"The General"') OR (c00 LIKE '"Breathless"') OR (c00 LIKE '
"The Gold Rush"') OR (c00 LIKE '"Sunset Blvd."') OR (c00 LIKE '"The 400 Blows"') OR (c00 LIKE '"Children of Paradise"') OR (c00 LIKE '"Chinatown"') OR (c00 LIKE '"Blade Run
ner"') OR (c00 LIKE '"Ordet"') OR (c00 LIKE '"The Night of the Hunter"') OR (c00 LIKE '"L''Avventura"') OR (c00 LIKE '"Andrei Rublev"') OR (c00 LIKE '"It''s a Wonderful Lif
e"') OR (c00 LIKE '"M"') OR (c00 LIKE '"Persona"') OR (c00 LIKE '"Rear Window"') OR (c00 LIKE '"Jules and Jim"') OR (c00 LIKE '"The Wild Bunch"') OR (c00 LIKE '"Ugetsu"') O
R (c00 LIKE '"Contempt"') OR (c00 LIKE '"The Magnificent Ambersons"') OR (c00 LIKE '"La Strada"') OR (c00 LIKE '"The Seventh Seal"') OR (c00 LIKE '"Modern Times"') OR (c00
LIKE '"Intolerance: Love''s Struggle Throughout the Ages"') OR (c00 LIKE '"Wild Strawberries"') OR (c00 LIKE '"North by Northwest"') OR (c00 LIKE '"Rio Bravo"') OR (c00 LIK
E '"The Apartment"') OR (c00 LIKE '"Au Hasard Balthazar"') OR (c00 LIKE '"The Wizard of Oz"') OR (c00 LIKE '"Pather Panchali"') OR (c00 LIKE '"Once Upon a Time in the West"
') OR (c00 LIKE '"Gone with the Wind"') OR (c00 LIKE '"The Leopard"') OR (c00 LIKE '"The Conformist"') OR (c00 LIKE '"The Mirror"') OR (c00 LIKE '"Greed"') OR (c00 LIKE '"A
ll About Eve"') OR (c00 LIKE '"Viridiana"') OR (c00 LIKE '"Metropolis"') OR (c00 LIKE '"The Man Who Shot Liberty Valance"') OR (c00 LIKE '"Jaws"') OR (c00 LIKE '"The Battle
of Algiers"') OR (c00 LIKE '"Fanny and Alexander"') OR (c00 LIKE '"Nashville"') OR (c00 LIKE '"Amarcord"') OR (c00 LIKE '"To Be or Not to Be"') OR (c00 LIKE '"Barry Lyndon
"') OR (c00 LIKE '"A Clockwork Orange"') OR (c00 LIKE '"Notorious"') OR (c00 LIKE '"Stagecoach"') OR (c00 LIKE '"Ikiru"') OR (c00 LIKE '"Sansho the Bailiff"') OR (c00 LIKE
'"Aguirre: The Wrath of God"') OR (c00 LIKE '"Pierrot le Fou"') OR (c00 LIKE '"Annie Hall"') OR (c00 LIKE '"The Earrings of Madame de..."') OR (c00 LIKE '"Double Indemnity"
') OR (c00 LIKE '"Play Time"') OR (c00 LIKE '"On the Waterfront"') OR (c00 LIKE '"Journey to Italy"') OR (c00 LIKE '"Pickpocket"') OR (c00 LIKE '"Letter from an Unknown Wom
an"') OR (c00 LIKE '"Bringing Up Baby"') OR (c00 LIKE '"My Darling Clementine"') OR (c00 LIKE '"Living Russia') OR (c00 LIKE '"Rome') OR (c00 LIKE '"Goodfellas"') OR (c00 L
IKE '"Star Wars: Episode IV - A New Hope"') OR (c00 LIKE '"Last Year at Marienbad"') OR (c00 LIKE '"Blue Velvet"') OR (c00 LIKE '"Nosferatu"') OR (c00 LIKE '"Duck Soup"') O
R (c00 LIKE '"His Girl Friday"') OR (c00 LIKE '"King Kong"') OR (c00 LIKE '"L''Age d''Or"') OR (c00 LIKE '"Napoleon"') OR (c00 LIKE '"Hiroshima Mon Amour"') OR (c00 LIKE '"
The Lady Eve"') OR (c00 LIKE '"Manhattan"') OR (c00 LIKE '"Gertrud"') OR (c00 LIKE '"The Shining"') OR (c00 LIKE '"Mean Streets"') OR (c00 LIKE '"The Young and the Damned"'
) OR (c00 LIKE '"Pulp Fiction"') OR (c00 LIKE '"Stalker"') OR (c00 LIKE '"Out of the Past"') OR (c00 LIKE '"E.T.: The Extra-Terrestrial"') OR (c00 LIKE '"Ran"') OR (c00 LIK
E '"McCabe & Mrs. Miller"') OR (c00 LIKE '"One Flew Over the Cuckoo''s Nest"') OR (c00 LIKE '"Paisan"') OR (c00 LIKE '"The Grapes of Wrath"') OR (c00 LIKE '"Stairway to Hea
ven"') OR (c00 LIKE '"Broken Blossoms or The Yellow Man and the Girl"') OR (c00 LIKE '"Don''t Look Now"') OR (c00 LIKE '"The Birth of a Nation"') OR (c00 LIKE '"The Extermi
nating Angel"') OR (c00 LIKE '"Ashes and Diamonds"') OR (c00 LIKE '"The Best Years of Our Lives"') OR (c00 LIKE '"Sherlock Jr."') OR (c00 LIKE '"The Treasure of the Sierra
Madre"') OR (c00 LIKE '"Close Encounters of the Third Kind"') OR (c00 LIKE '"The Red Shoes"') OR (c00 LIKE '"Vivre Sa Vie"') OR (c00 LIKE '"Umberto D."') OR (c00 LIKE '"The
Life and Death of Colonel Blimp"') OR (c00 LIKE '"Brazil"') OR (c00 LIKE '"Sullivan''s Travels"') OR (c00 LIKE '"Days of Heaven"') OR (c00 LIKE '"Brief Encounter"') OR (c0
0 LIKE '"Earth"') OR (c00 LIKE '"Bonnie and Clyde"') OR (c00 LIKE '"Black Narcissus"') OR (c00 LIKE '"The Decalogue"') OR (c00 LIKE '"Once Upon a Time in America"') OR (c00
LIKE '"The Cabinet of Dr. Caligari"') OR (c00 LIKE '"Badlands"') OR (c00 LIKE '"The Band Wagon"') OR (c00 LIKE '"Chimes at Midnight"') OR (c00 LIKE '"The Maltese Falcon"')
OR (c00 LIKE '"The Exorcist"') OR (c00 LIKE '"A Woman Under the Influence"') OR (c00 LIKE '"La Jetée"') OR (c00 LIKE '"The Quiet Man"') OR (c00 LIKE '"A Man Escaped"') OR
(c00 LIKE '"Nights of Cabiria"') OR (c00 LIKE '"Rocco and His Brothers"') OR (c00 LIKE '"Red River"') OR (c00 LIKE '"Jeanne Dielman') OR (c00 LIKE '"The Philadelphia Story"
') OR (c00 LIKE '"Freaks"') OR (c00 LIKE '"The Conversation"') OR (c00 LIKE '"Un Chien Andalou"') OR (c00 LIKE '"Belle de Jour"') OR (c00 LIKE '"The Good') OR (c00 LIKE '"D
o the Right Thing"') OR (c00 LIKE '"Shoah"') OR (c00 LIKE '"Trouble in Paradise"') OR (c00 LIKE '"Partie de campagne"') OR (c00 LIKE '"Ivan the Terrible') OR (c00 LIKE '"Cr
ies and Whispers"') OR (c00 LIKE '"Raiders of the Lost Ark"') OR (c00 LIKE '"Sweet Smell of Success"') OR (c00 LIKE '"Night of the Living Dead"') OR (c00 LIKE '"Alien"') OR
(c00 LIKE '"The Graduate"') OR (c00 LIKE '"The Deer Hunter"') OR (c00 LIKE '"The Wages of Fear"') OR (c00 LIKE '"The Travelling Players"') OR (c00 LIKE '"The Gospel Accord
ing to St. Matthew"') OR (c00 LIKE '"Blow-Up"') OR (c00 LIKE '"Ivan the Terrible') OR (c00 LIKE '"Beauty and the Beast"') OR (c00 LIKE '"The Great Dictator"') OR (c00 LIKE
'"The Last Laugh"') OR (c00 LIKE '"The Palm Beach Story"') OR (c00 LIKE '"Performance"') OR (c00 LIKE '"Vampyr"') OR (c00 LIKE '"The Mother and the Whore"') OR (c00 LIKE '"
The Discreet Charm of the Bourgeoisie"') OR (c00 LIKE '"Kind Hearts and Coronets"') OR (c00 LIKE '"Paths of Glory"') OR (c00 LIKE '"The Bridge on the River Kwai"') OR (c00
LIKE '"It Happened One Night"') OR (c00 LIKE '"In the Mood for Love"') OR (c00 LIKE '"Bride of Frankenstein"') OR (c00 LIKE '"The World of Apu"') OR (c00 LIKE '"Death in Ve
nice"') OR (c00 LIKE '"Unforgiven"') OR (c00 LIKE '"Monsieur Verdoux"') OR (c00 LIKE '"Peeping Tom"') OR (c00 LIKE '"L''eclisse"') OR (c00 LIKE '"Schindler''s List"') OR (c00 LIKE '"The Shop Around the Corner"') OR (c00 LIKE '"Late Spring"') OR (c00 LIKE '"The Texas Chain Saw Massacre"') OR (c00 LIKE '"Rosemary''s Baby"') OR (c00 LIKE '"Johnny Guitar"') OR (c00 LIKE '"Sans Soleil"') OR (c00 LIKE '"The River"') OR (c00 LIKE '"Snow White and the Seven Dwarfs"') OR (c00 LIKE '"Ali: Fear Eats the Soul"') OR (c00 LIKE '"The Crowd"') OR (c00 LIKE '"The Music Room"') OR (c00 LIKE '"The Umbrellas of Cherbourg"') OR (c00 LIKE '"Celine and Julie Go Boating"') OR (c00 LIKE '"Throne of Blood"') OR (c00 LIKE '"Close-Up"') OR (c00 LIKE '"Pandora''s Box"') OR (c00 LIKE '"Only Angels Have Wings"') OR (c00 LIKE '"Crimes and Misdemeanors"') OR (c00 LIKE '"Solaris"') OR (c00 LIKE '"Le Samouraï"') OR (c00 LIKE '"The Spirit of the Beehive"') OR (c00 LIKE '"Shoot the Piano Player"') OR (c00 LIKE '"Tabu: A Story of the South Seas"') OR (c00 LIKE '"Written on the Wind"') OR (c00 LIKE '"L''argent"') OR (c00 LIKE '"Mr. Hulot''s Holiday"') OR (c00 LIKE '"NanAt around 8150 characters, that statement is not anywhere near the maximum allowed length for an SQLite statement (1M characters). Does anyone know why it is truncated?
On a related note, is it possible to create smartplaylist rules that match the imdb id of a media?
-bunny

![[Image: fanarttv.png]](http://trakt.us/images/thanks/fanarttv.png)
Search
Help