Skip to content

Wizz Air (W4) flights: wrong airline name ("LC Péru") and price=0 #127

Description

@snetesa

Bug description

Wizz Air flights (IATA code W4) are returned with incorrect airline name and broken price parsing:

  • Airline name: displays as "LC Péru" instead of "Wizz Air"
  • Price: returns 0.0 instead of actual price
  • Currency: returns USD instead of the expected regional currency (EUR in this case)

This is the same class of bug as #105 (ZG: "Groznyy Avia" → "Zipair") and #90 (3F stale airline data). The W4 IATA code was historically assigned to LC Péru (defunct since 2019) and has since been reassigned to Wizz Air.

Steps to reproduce

fli flights MAD FCO 2026-06-09 --airlines W4 --format json

Actual result

{
  "price": 0.0,
  "currency": "USD",
  "legs": [{
    "airline": "LC Péru",
    "airline_code": "W4",
    "flight_number": "6012",
    "departure_airport": "Madrid Barajas International Airport",
    "arrival_airport": "Leonardo Da Vinci (Fiumicino) International Airport",
    "departure_time": "2026-06-09T09:25:00",
    "arrival_time": "2026-06-09T11:55:00"
  }]
}

Two Wizz Air flights found (W4 6012 at 09:25 and W4 6014 at 20:35), both with price=0 and wrong airline name.

Expected result

  • Airline name: "Wizz Air"
  • Price: actual fare (Wizz Air MAD→FCO is typically €25-60 one-way)
  • Currency: EUR (for Spain-based search)

Context

  • Google Flights web UI correctly shows these as Wizz Air flights with real prices
  • Wizz Air flies direct from Madrid to 16 cities including Rome (one of its most frequent routes)
  • Installed from main branch (pipx install git+https://github.com/punitarani/fli.git)
  • Running on macOS

Suggested fix

  1. Update the Airline enum: W4 = "LC Péru"W4 = "Wizz Air" (same pattern as chore: Update ZG airline enum from “Groznyy Avia” to “Zipair” #105)
  2. Investigate why price parsing returns 0 for W4 flights — this may be a separate issue in the response parser

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions