모바일 경로의 place_id 파싱 추가

This commit is contained in:
skkim committed 2026-06-04 13:30:51 +09:00
1 parent bdee852bed
commit 825ab1fd89
1 file changed
+3
+3
View File
@@ -93,6 +93,9 @@ query getAccommodation($id: String!, $deviceType: String) {
raise URLNotFoundException("This URL does not contain a place ID")
match = re.search(place_pattern, self.url)
if not match:
# place.naver.com/{type}/{id} 형식 (예: m.place.naver.com/restaurant/11667161)
match = re.search(r"place\.naver\.com/[a-zA-Z]+/(\d+)", self.url)
if not match:
raise URLNotFoundException("Failed to parse place ID from URL")
return match[1]