Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No movie show in the list, api call seems not work #128

Open
SunPointed opened this issue Nov 19, 2019 · 3 comments
Open

No movie show in the list, api call seems not work #128

SunPointed opened this issue Nov 19, 2019 · 3 comments

Comments

@SunPointed
Copy link

like below
WX20191119-151524@2x

@nathansdev
Copy link

I ran into the same issue. any luck in resolving it?

@leeyc09
Copy link

leeyc09 commented Mar 26, 2020

@nathansdev
I restored some of the schedule xml responses to a string.
if you want see list.
Please comment response variable on the method.
core/networking/FinnkinoApi/getSchedule

date is 2020-03-26

Future<KtList<Show>> getSchedule(Theater theater, DateTime date) async {
    final dt = ddMMyyyy.format(date ?? new DateTime.now());

    //final response = await client.get(
    //  kScheduleBaseUrl.replace(queryParameters: {
    //    'area': theater.id,
    //    'dt': dt,
    //    'includeGallery': 'true',
    //  }),
    // );
    //return ShowParser.parse(utf8.decode(response.bodyBytes));

var str = '<xml><Show><ID>818142</ID><dtAccounting>2020-03-26T00:00:00</dtAccounting><dttmShowStart>2020-03-26T12:00:00</dttmShowStart><dttmShowStartUTC>2020-03-26T10:00:00Z</dttmShowStartUTC><dttmShowEnd>2020-03-26T13:32:00</dttmShowEnd><dttmShowEndUTC>2020-03-26T11:32:00Z</dttmShowEndUTC><ShowSalesStartTime>2000-01-01T00:00:00</ShowSalesStartTime><ShowSalesStartTimeUTC>2000-01-01T00:00:00Z</ShowSalesStartTimeUTC><ShowSalesEndTime>2020-03-26T11:45:00</ShowSalesEndTime><ShowSalesEndTimeUTC>2020-03-26T09:45:00Z</ShowSalesEndTimeUTC><ShowReservationStartTime>2000-01-01T00:00:00</ShowReservationStartTime><ShowReservationStartTimeUTC>2000-01-01T00:00:00Z</ShowReservationStartTimeUTC><ShowReservationEndTime>2020-03-26T10:30:00</ShowReservationEndTime><ShowReservationEndTimeUTC>2020-03-26T08:30:00Z</ShowReservationEndTimeUTC><EventID>301006</EventID><Title>Onnelin ja Annelin talvi</Title><OriginalTitle>Onnelin ja Annelin talvi</OriginalTitle><ProductionYear>2015</ProductionYear><LengthInMinutes>82</LengthInMinutes><dtLocalRelease>2015-10-09T00:00:00</dtLocalRelease><Rating>S</Rating><RatingLabel>S</RatingLabel><RatingImageUrl>https://media.finnkino.fi/images/rating_large_S.png</RatingImageUrl><EventType>Movie</EventType><Genres>Perhe-elokuva, Kotimainen</Genres><TheatreID>1037</TheatreID><TheatreAuditriumID>1232</TheatreAuditriumID><Theatre>Plevna, Tampere</Theatre><TheatreAuditorium>sali 1</TheatreAuditorium><TheatreAndAuditorium>Plevna, Tampere, sali 1</TheatreAndAuditorium><PresentationMethodAndLanguage>suomi</PresentationMethodAndLanguage><PresentationMethod/><EventSeries/><ShowURL>http://www.finnkino.fi/Websales/Show/818142/</ShowURL><EventURL>http://www.finnkino.fi/Event/301006/</EventURL><Images><EventMicroImagePortrait>http://media.finnkino.fi/1012/Event_10344/portrait_micro/OnneliAnnelinTalvi_1080.jpg</EventMicroImagePortrait><EventSmallImagePortrait>http://media.finnkino.fi/1012/Event_10344/portrait_small/OnneliAnnelinTalvi_1080.jpg</EventSmallImagePortrait><EventMediumImagePortrait>http://media.finnkino.fi/1012/Event_10344/portrait_medium/OnneliAnnelinTalvi_1080.jpg</EventMediumImagePortrait><EventLargeImagePortrait>http://media.finnkino.fi/1012/Event_10344/portrait_small/OnneliAnnelinTalvi_1080.jpg</EventLargeImagePortrait><EventSmallImageLandscape>http://media.finnkino.fi/1012/Event_10344/landscape_small/OnneliAnnelinTalvi_444.jpg</EventSmallImageLandscape><EventLargeImageLandscape>http://media.finnkino.fi/1012/Event_10344/landscape_large/OnneliAnnelinTalvi_670.jpg</EventLargeImageLandscape></Images><ContentDescriptors/></Show><Show><ID>818333</ID><dtAccounting>2020-03-26T00:00:00</dtAccounting><dttmShowStart>2020-03-26T12:00:00</dttmShowStart><dttmShowStartUTC>2020-03-26T10:00:00Z</dttmShowStartUTC><dttmShowEnd>2020-03-26T13:59:00</dttmShowEnd><dttmShowEndUTC>2020-03-26T11:59:00Z</dttmShowEndUTC><ShowSalesStartTime>2000-01-01T00:00:00</ShowSalesStartTime><ShowSalesStartTimeUTC>2000-01-01T00:00:00Z</ShowSalesStartTimeUTC><ShowSalesEndTime>2020-03-26T11:45:00</ShowSalesEndTime><ShowSalesEndTimeUTC>2020-03-26T09:45:00Z</ShowSalesEndTimeUTC><ShowReservationStartTime>2000-01-01T00:00:00</ShowReservationStartTime><ShowReservationStartTimeUTC>2000-01-01T00:00:00Z</ShowReservationStartTimeUTC><ShowReservationEndTime>2020-03-26T10:30:00</ShowReservationEndTime><ShowReservationEndTimeUTC>2020-03-26T08:30:00Z</ShowReservationEndTimeUTC><EventID>301266</EventID><Title>Louder Than Bombs</Title><OriginalTitle>Louder Than Bombs</OriginalTitle><ProductionYear>2015</ProductionYear><LengthInMinutes>109</LengthInMinutes><dtLocalRelease>2015-11-06T00:00:00</dtLocalRelease><Rating>12</Rating><RatingLabel>12</RatingLabel><RatingImageUrl>https://media.finnkino.fi/images/rating_large_12.png</RatingImageUrl><EventType>Movie</EventType><Genres>Draama</Genres><TheatreID>1037</TheatreID><TheatreAuditriumID>1247</TheatreAuditriumID><Theatre>Plevna, Tampere</Theatre><TheatreAuditorium>sali 5</TheatreAuditorium><TheatreAndAuditorium>Plevna, Tampere, sali 5</TheatreAndAuditorium><PresentationMethodAndLanguage>English/French</PresentationMethodAndLanguage><PresentationMethod/><EventSeries/><ShowURL>http://www.finnkino.fi/Websales/Show/818333/</ShowURL><EventURL>http://www.finnkino.fi/Event/301266/</EventURL><Images><EventMicroImagePortrait>http://media.finnkino.fi/1012/Event_10605/portrait_micro/LouderThanBombs_1080.jpg</EventMicroImagePortrait><EventSmallImagePortrait>http://media.finnkino.fi/1012/Event_10605/portrait_small/LouderThanBombs_1080.jpg</EventSmallImagePortrait><EventMediumImagePortrait>http://media.finnkino.fi/1012/Event_10605/portrait_medium/LouderThanBombs_1080.jpg</EventMediumImagePortrait><EventLargeImagePortrait>http://media.finnkino.fi/1012/Event_10605/portrait_small/LouderThanBombs_1080.jpg</EventLargeImagePortrait><EventSmallImageLandscape>http://media.finnkino.fi/1012/Event_10605/landscape_small/LouderThanBombs_444f.jpg</EventSmallImageLandscape><EventLargeImageLandscape>http://media.finnkino.fi/1012/Event_10605/landscape_large/LouderThanBombs_670f.jpg</EventLargeImageLandscape></Images><ContentDescriptors><ContentDescriptor><Name>Violence</Name><ImageURL>https://media.finnkino.fi/images/content_Violence.png</ImageURL></ContentDescriptor><ContentDescriptor><Name>Disturbing</Name><ImageURL>https://media.finnkino.fi/images/content_Disturbing.png</ImageURL></ContentDescriptor></ContentDescriptors></Show></xml>';
    return ShowParser.parse(str);

@leeyc09
Copy link

leeyc09 commented Mar 26, 2020

event xml

const String eventsXml = '''<?xml version="1.0"?>
<Events xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Event>
        <ID>302535</ID>
        <Title>15:17 Pariisiin (2D dub)</Title>
        <OriginalTitle>The 15:17 to Paris (2D dub)</OriginalTitle>
        <ProductionYear>2018</ProductionYear>
        <LengthInMinutes>94</LengthInMinutes>
        <dtLocalRelease>2020-03-26T00:00:00</dtLocalRelease>
        <Rating>12</Rating>
        <RatingLabel>12</RatingLabel>
        <RatingImageUrl>https://media.finnkino.fi/images/rating_large_12.png</RatingImageUrl>
        <LocalDistributorName>SF Film Finland Oy</LocalDistributorName>
        <GlobalDistributorName>SF Film Finland Oy</GlobalDistributorName>
        <ProductionCompanies>-</ProductionCompanies>
        <EventType>Movie</EventType>
        <Genres>Draama, Jännitys</Genres>
        <ShortSynopsis>Short synopsis goes here.</ShortSynopsis>
        <Synopsis>Synopsis goes here.</Synopsis>
        <EventURL>http://www.finnkino.fi/event/302535/title/1517_pariisiin/</EventURL>
        <Images>
            <EventSmallImagePortrait>http://media.finnkino.fi/1012/Event_11881/portrait_small/The1517toParis_1080.jpg</EventSmallImagePortrait>
            <EventMediumImagePortrait>http://media.finnkino.fi/1012/Event_11881/portrait_medium/The1517toParis_1080.jpg</EventMediumImagePortrait>
            <EventLargeImagePortrait>http://media.finnkino.fi/1012/Event_11881/portrait_small/The1517toParis_1080.jpg</EventLargeImagePortrait>
            <EventSmallImageLandscape>http://media.finnkino.fi/1012/Event_11881/landscape_small/The1517toParis_444.jpg</EventSmallImageLandscape>
            <EventLargeImageLandscape>http://media.finnkino.fi/1012/Event_11881/landscape_large/The1517toParis_670.jpg</EventLargeImageLandscape>
        </Images>
        <Videos>
            <EventVideo>
                <Title>Katso traileri</Title>
                <Location>oFa4C6OcuM4</Location>
                <ThumbnailLocation />
                <MediaResourceSubType>EventTrailer</MediaResourceSubType>
                <MediaResourceFormat>YouTubeVideo</MediaResourceFormat>
            </EventVideo>
        </Videos>
        <Cast>
            <Actor>
                <FirstName>Anthony</FirstName>
                <LastName>Sadler</LastName>
            </Actor>
            <Actor>
                <FirstName>Alek</FirstName>
                <LastName>Skarlatos</LastName>
            </Actor>
            <Actor>
                <FirstName>Spencer</FirstName>
                <LastName>Stone</LastName>
            </Actor>
            <Actor>
                <FirstName>Jenna</FirstName>
                <LastName>Fischer</LastName>
            </Actor>
            <Actor>
                <FirstName>Judy</FirstName>
                <LastName>Greer</LastName>
            </Actor>
            <Actor>
                <FirstName>P.J.</FirstName>
                <LastName>Byrne</LastName>
            </Actor>
            <Actor>
                <FirstName>Tony</FirstName>
                <LastName>Hale</LastName>
            </Actor>
            <Actor>
                <FirstName>Thomas</FirstName>
                <LastName>Lennon</LastName>
            </Actor>
            <Actor>
                <FirstName>Paul-Mikél</FirstName>
                <LastName>Williams</LastName>
            </Actor>
            <Actor>
                <FirstName>Bryce</FirstName>
                <LastName>Gheisar</LastName>
            </Actor>
            <Actor>
                <FirstName>William</FirstName>
                <LastName>Jennings</LastName>
            </Actor>
        </Cast>
        <Directors>
            <Director>
                <FirstName>Clint</FirstName>
                <LastName>Eastwood</LastName>
            </Director>
        </Directors>
        <ContentDescriptors>
            <ContentDescriptor>
                <Name>Violence</Name>
                <ImageURL>https://media.finnkino.fi/images/content_Violence.png</ImageURL>
            </ContentDescriptor>
            <ContentDescriptor>
                <Name>Disturbing</Name>
                <ImageURL>https://media.finnkino.fi/images/content_Disturbing.png</ImageURL>
            </ContentDescriptor>
        </ContentDescriptors>
    </Event>
    <Event>
        <ID>302465</ID>
        <Title>95</Title>
        <OriginalTitle>95</OriginalTitle>
        <ProductionYear>2017</ProductionYear>
        <LengthInMinutes>107</LengthInMinutes>
        <dtLocalRelease>2017-12-25T00:00:00</dtLocalRelease>
        <Rating>7</Rating>
        <RatingLabel>7</RatingLabel>
        <RatingImageUrl>https://media.finnkino.fi/images/rating_large_7.png</RatingImageUrl>
        <LocalDistributorName>SF Film Finland Oy</LocalDistributorName>
        <GlobalDistributorName>SF Film Finland Oy</GlobalDistributorName>
        <ProductionCompanies>-</ProductionCompanies>
        <EventType>Movie</EventType>
        <Genres>Draama, Kotimainen</Genres>
        <ShortSynopsis>Vuoden 1995 jääkiekon maailmanmestaruusviikonloppuun sijoittuva 95-elokuva kertoo toisiinsa limittyvien tarinoiden kautta siitä, miksi Suomesta tuli maailmanmestari ja miten se vaikutti koko kansakuntaan. 95 on osa virallista Suomi 100 -juhlavuoden ohjelmistoa.</ShortSynopsis>
        <Synopsis>Vuoden 1995 jääkiekon maailmanmestaruusviikonloppuun sijoittuva 95-elokuva kertoo toisiinsa limittyvien tarinoiden kautta siitä, miksi Suomesta tuli maailmanmestari ja miten se vaikutti koko kansakuntaan.
            95 on osa virallista Suomi 100 -juhlavuoden ohjelmistoa.
            Rooleissa: Curt Lindström – Jens Hulten, Hannu Aravirta – Kari-Pekka Toivonen, Heikki Riihiranta – Pekka Huotari, Saku Koivu – Jon-Jon Geitel, Ville Peltonen – Akseli Kouki, Jere Lehtinen – Kustaa Tuohimaa, Timo Jutila – Joel Hirvonen, Janne Ojanen – Oskari Ojanen, Marko Palo – Valtteri Honka, Marko Kiprusoff – Karlo Haapiainen, Raimo Helminen – Sebastian Rejman, Sami Kapanen – Mikko Laine, Esa Keskinen – Topias Hirvelä, Hannu Virta – Jarkko Järvinen, Mika Nieminen – Victor Paul, Antti Törmänen – Lauri Talvio, Jukka Tammi – Lauri Tilkanen, Raimo Summanen – Akseli Mattila, Ari Sulander – Henri Nyqvist, Mika Strömberg – Rasmus Tarkiainen, Erik Hämäläinen – Tommi Lipasti, Petteri Nummelin – Ronny Roslöf, Janne Niinimaa – Kimi Vilkkula, Juha Ylönen – Mikko Lindbom, Jarmo Myllys – Hannes Suominen, Tero Lehterä – Roman Tiinus</Synopsis>
        <EventURL>http://www.finnkino.fi/event/302465/title/95/</EventURL>
        <Images>
            <!-- Testing empty images element -->
            <SomeOtherImage>test</SomeOtherImage>
        </Images>
        <Videos>
            <EventVideo>
                <Title>Katso traileri</Title>
                <Location>AUlP8Sgzzk0</Location>
                <ThumbnailLocation />
                <MediaResourceSubType>EventTrailer</MediaResourceSubType>
                <MediaResourceFormat>YouTubeVideo</MediaResourceFormat>
            </EventVideo>
        </Videos>
        <Cast>
            <Actor>
                <FirstName>Jens</FirstName>
                <LastName>Hulten</LastName>
            </Actor>
            <Actor>
                <FirstName>Kari-Pekka</FirstName>
                <LastName>Toivonen</LastName>
            </Actor>
            <Actor>
                <FirstName>Jon-Jon</FirstName>
                <LastName>Geitel</LastName>
            </Actor>
            <Actor>
                <FirstName>Akseli</FirstName>
                <LastName>Kouki</LastName>
            </Actor>
            <Actor>
                <FirstName>Kustaa</FirstName>
                <LastName>Tuohimaa</LastName>
            </Actor>
            <Actor>
                <FirstName>Joel</FirstName>
                <LastName>Hirvonen</LastName>
            </Actor>
        </Cast>
        <Directors>
            <!-- Testing empty Directors element -->
            <Test>test</Test>
        </Directors>
        <ContentDescriptors>
            <ContentDescriptor>
                <Name>Disturbing</Name>
                <ImageURL>https://media.finnkino.fi/images/content_Disturbing.png</ImageURL>
            </ContentDescriptor>
        </ContentDescriptors>
    </Event>
    <Event>
        <ID>302478</ID>
        <Title>All the Money in the World</Title>
        <OriginalTitle>All the Money in the World</OriginalTitle>
        <ProductionYear>2017</ProductionYear>
        <LengthInMinutes>133</LengthInMinutes>
        <dtLocalRelease>2018-01-12T00:00:00</dtLocalRelease>
        <Rating>16</Rating>
        <RatingLabel>16</RatingLabel>
        <RatingImageUrl>https://media.finnkino.fi/images/rating_large_16.png</RatingImageUrl>
        <LocalDistributorName>SF Film Finland Oy</LocalDistributorName>
        <GlobalDistributorName>SF Film Finland Oy</GlobalDistributorName>
        <ProductionCompanies>-</ProductionCompanies>
        <EventType>Movie</EventType>
        <Genres>Draama, Jännitys</Genres>
        <ShortSynopsis>Elokuva kertoo 16-vuotiaan John Paul Getty III:n (Charlie Plummer) kidnappauksesta ja hänen omistautuneen äitinsä Gailin (Michelle Williams) epätoivoisesta yrityksestä saada poikansa miljonääri isoisä (Christopher Plummer) maksamaan lunnaat.</ShortSynopsis>
        <Synopsis>Elokuva kertoo 16-vuotiaan John Paul Getty III:n (Charlie Plummer) kidnappauksesta ja hänen omistautuneen äitinsä Gailin (Michelle Williams) epätoivoisesta yrityksestä saada poikansa miljonääri isoisä (Christopher Plummer) maksamaan lunnaat. Getty vanhemman kieltäytyessä, ja sieppaajien muuttuessa yhä epävakaammiksi ja brutaalimmaksi, Gail yrittää vedota häneen. Poikansa elämän ollessa vaakalaudalla, Gailista ja Gettyn neuvonantajasta (Mark Wahlberg) muodostuu epätavalliset liittolaiset kilpailussa aikaa vastaan. Kilpailussa, joka lopulta paljastaa rakkauden todellisen arvon suhteessa rahaan.</Synopsis>
        <EventURL>http://www.finnkino.fi/event/302478/title/all_the_money_in_the_world/</EventURL>
        <!-- Testing event without "Images" tag at all -->
        <Videos>
            <EventVideo>
                <Title>Katso traileri</Title>
                <Location>GKc9LWtlAW4</Location>
                <ThumbnailLocation />
                <MediaResourceSubType>EventTrailer</MediaResourceSubType>
                <MediaResourceFormat>YouTubeVideo</MediaResourceFormat>
            </EventVideo>
        </Videos>
        <Cast>
            <Actor>
                <FirstName>Michelle</FirstName>
                <LastName>Williams</LastName>
            </Actor>
            <Actor>
                <FirstName>Mark</FirstName>
                <LastName>Wahlberg</LastName>
            </Actor>
            <Actor>
                <FirstName>Christopher</FirstName>
                <LastName>Plummer</LastName>
            </Actor>
            <Actor>
                <FirstName>Romain</FirstName>
                <LastName>Duris</LastName>
            </Actor>
            <Actor>
                <FirstName>Charlie</FirstName>
                <LastName>Plummer</LastName>
            </Actor>
            <Actor>
                <FirstName>Timothy</FirstName>
                <LastName>Hutton</LastName>
            </Actor>
            <Actor>
                <FirstName>Dan</FirstName>
                <LastName>Friedkin</LastName>
            </Actor>
        </Cast>
        <Directors>
            <Director>
                <FirstName>Ridley</FirstName>
                <LastName>Scott</LastName>
            </Director>
            <Director>
                <FirstName>Clint</FirstName>
                <LastName>Eastwood</LastName>
            </Director>
        </Directors>
        <ContentDescriptors>
            <ContentDescriptor>
                <Name>Violence</Name>
                <ImageURL>https://media.finnkino.fi/images/content_Violence.png</ImageURL>
            </ContentDescriptor>
            <ContentDescriptor>
                <Name>Disturbing</Name>
                <ImageURL>https://media.finnkino.fi/images/content_Disturbing.png</ImageURL>
            </ContentDescriptor>
        </ContentDescriptors>
    </Event>
</Events>''';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants