Commit f6cfcda3 authored by Tomáš Szaniszlo's avatar Tomáš Szaniszlo
Browse files

Zomato → Menicka; zmazanych par neexistujucich

parent 0f7c58c1
Loading
Loading
Loading
Loading
+19 −37
Original line number Diff line number Diff line
@@ -11,29 +11,24 @@ my $bus32 = 'Bus spoj: https://jizdnirady.idnes.cz/brno/spojeni/?f=Botanick%C3%A

our $restaurants = {
    'padthai' => {
        'type' => 'zomato',
        'site_id' => 16506806,
        'type' => 'menicka',
        'menu_url' => 'https://www.menicka.cz/8483-padthai.html',
    },
    'everest' => {
        'type' => 'zomato',
        'site_id' => 16506537,
        'type' => 'showurl',
        'aliases' => [qw(eve)],
        'fallback_url' => 'https://www.everestbrno.cz/denni-menu/', # parseable
        'menu_url' => 'https://www.everestbrno.cz/denni-menu/', # parseable
        # https://www.menicka.cz/8033-everest-nepalese-restaurant.html may not be filled out
        'note' => $bus32,
    },
    'himalaya' => {
        'type' => 'showurl',
        'menu_url' => 'https://www.himalayarestaurace.cz/denni-menu/', # unparseable
        'aliases' => [qw(himalaya)],
    },
    'selepka' => {
        'type' => 'zomato',
        'site_id' => 16506040,
        'fallback_url' => 'http://www.selepova.cz/denni-menu/', # parseable
        'type' => 'showurl',
        'menu_url' => 'http://www.selepova.cz/denni-menu/', # parseable
        # https://www.menicka.cz/2721-selepka.html
    },
    'suzies' => {
        'type' => 'zomato',
        'site_id' => 18126190,
        'type' => 'menicka',
        'menu_url' => 'https://www.menicka.cz/3830-suzies-steak-pub.html',
        'note' => $bus32,
    },
    'cattani' => {
@@ -42,28 +37,21 @@ our $restaurants = {
        'menu_url' => 'http://www.cattani.cz/, https://www.menicka.cz/3179-cattani---josefska.html',
    },
    'udrevaka' => {
        'type' => 'zomato',
        'site_id' => 16505458,
        'type' => 'menicka',
        'aliases' => [qw(drevak)],
        'fallback_url' => 'https://udrevaka.cz/denni-menu/', # parseable
        'menu_url' => 'https://www.menicka.cz/2752-u-drevaka-beergrill.html', # parseable
    },
    'vegalite' => {
        'type' => 'showurl',
        'menu_url' => 'http://vegalite.cz/#denni-menu, https://www.menicka.cz/2775-vegalite.html', # parseable
    },
    'siwa' => {
        'type' => 'zomato',
        'site_id' => 18578705,
    },
    'goldennepal' => {
        'type' => 'showurl',
        'aliases' => [qw(golden gn)],
        'menu_url' => 'https://www.golden-nepal.cz/denni-menu/', # parseable
        'type' => 'menicka',
        'menu_url' => 'https://www.menicka.cz/5340-siwa-orient.html',
    },
    'divabara' => {
        'type' => 'zomato',
        'site_id' => 16514047,
        'fallback_url' => 'http://www.restauracedivabara.cz/menu/',
        'type' => 'menicka',
        'menu_url' => 'https://www.menicka.cz/6468-diva-bara.html',
    },
    'annapurna' => {
        'type' => 'showurl',
@@ -86,7 +74,7 @@ our $restaurants = {
        'fallback_url' => 'http://www.lightofindia.cz/lang-cs/denni-menu',
    },
    'sabaidy' => {
        'type' => 'module', # existuje i zomato (16512604), ale menu tam nedavaju
        'type' => 'module',
        'module' => 'Obedar::Sabaidy',
        'fallback_url' => 'http://www.amphone.eu/poledni-menu',
    },
@@ -141,11 +129,6 @@ our $restaurants = {
        'type' => 'showurl',
        'menu_url' => 'https://www.facebook.com/indiathali13/',
    },
    'boulevard' => {
        'type' => 'zomato',
        'site_id' => 16505876,
        'fallback_url' => 'http://www.boulevardrestaurant.cz/poledniacute-menu.html',
    },
    'namaskar' => {
        'type' => 'showurl',
        'menu_url' => 'http://www.namaskar.cz/denni-menu/',
@@ -157,9 +140,8 @@ our $restaurants = {
        'note' => "Pozor, obsahuje i menu Namaskaru Taborska. $bus32",
    },
    'jednabasen' => {
        'type' => 'zomato',
        'site_id' => 16506578,
        'fallback_url' => 'http://www.jedna-basen.cz/bar/denni-menu/',
        'type' => 'menicka',
        'show_url' => 'https://www.menicka.cz/2657-jedna-basen-wine--coffee-bar.html',
        'aliases' => [qw(basen)],
    },
    'singha' => {
+1 −1
Original line number Diff line number Diff line
@@ -259,7 +259,7 @@ sub get_menu {
            return $prenote . $msg . $note;
        }

    } elsif ($info->{'type'} eq 'showurl') {
    } elsif ($info->{'type'} eq 'showurl' || $info->{'type'} eq 'menicka') {
        my $msg = get_menu_showurl($info);
        print "{$restaurant} OK\n";
        return $prenote . $msg . $note;